Class ClientNeoForgePlatformImpl

java.lang.Object
net.dillon.dillonlib.platform.client.ClientModPlatform
net.dillon.dillonlib.platform.client.ClientNeoForgePlatformImpl
All Implemented Interfaces:
Loadable

public class ClientNeoForgePlatformImpl extends ClientModPlatform
  • Constructor Details

    • ClientNeoForgePlatformImpl

      public ClientNeoForgePlatformImpl()
  • Method Details

    • modId

      public String modId()
      Specified by:
      modId in interface Loadable
      Specified by:
      modId in class ClientModPlatform
      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: ClientModPlatform
      Registers a KeyMapping into the game.
      Specified by:
      registerKeyMapping in class ClientModPlatform
    • canSendPacket

      public boolean canSendPacket(net.minecraft.client.player.LocalPlayer localPlayer)
      Specified by:
      canSendPacket in class ClientModPlatform
      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.