Class ClientFabricPlatformImpl
java.lang.Object
net.dillon.dillonlib.platform.client.ClientModPlatform
net.dillon.dillonlib.platform.client.ClientFabricPlatformImpl
- All Implemented Interfaces:
Loadable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSendPacket(net.minecraft.client.player.LocalPlayer localPlayer) modId()net.minecraft.client.KeyMappingregisterKeyMapping(String name, com.mojang.blaze3d.platform.InputConstants.Type type, net.minecraft.client.KeyMapping.Category category, int value) Registers aKeyMappinginto the game.Methods inherited from class ClientModPlatform
registerClientCommands
-
Constructor Details
-
ClientFabricPlatformImpl
public ClientFabricPlatformImpl()
-
-
Method Details
-
modId
- Specified by:
modIdin interfaceLoadable- Specified by:
modIdin classClientModPlatform- Returns:
- the mod id for this client platform. Should return your mod id from your common mod class.
-
registerKeyMapping
public net.minecraft.client.KeyMapping registerKeyMapping(String name, com.mojang.blaze3d.platform.InputConstants.Type type, net.minecraft.client.KeyMapping.Category category, int value) Description copied from class:ClientModPlatformRegisters aKeyMappinginto the game.- Specified by:
registerKeyMappingin classClientModPlatform
-
canSendPacket
public boolean canSendPacket(net.minecraft.client.player.LocalPlayer localPlayer) - Specified by:
canSendPacketin classClientModPlatform- Returns:
- if a packet in your mod can be sent. It's helpful to check if a packet can be sent when joining a server that doesn't have your mod installed, which can inform the user of mod incompatibility. If you don't have a reason to check if a packet can be sent in your mod, you can just return false here.
-