Class ClientFactories

java.lang.Object
net.dillon.dillonlib.factory.ClientFactories

public class ClientFactories extends Object
Stores client-side factories for different Minecraft items and blocks.
Since:
1.0
  • Field Details

    • NON_KUMA_KEY_MAPPING_FACTORIES

      public static final Map<net.minecraft.client.KeyMapping, Consumer<net.minecraft.client.player.LocalPlayer>> NON_KUMA_KEY_MAPPING_FACTORIES
  • Constructor Details

    • ClientFactories

      public ClientFactories()
  • Method Details

    • createKeyMapping

      public static net.minecraft.client.KeyMapping createKeyMapping(String key, com.mojang.blaze3d.platform.InputConstants.Type type, net.minecraft.client.KeyMapping.Category category, int code, Consumer<net.minecraft.client.player.LocalPlayer> consumer)
      Registers a key binding factory, with an functional action and a message to send.
      Parameters:
      key - the translation key for the keybind
      category - the group that this keybind should be in, found in the "Controls" menu.
      code - the keycode for the keybind (see GLFW.)
      consumer - the Consumer that the keybind should execute (typically in-game).
    • boatModelLayer

      public static net.minecraft.client.model.geom.ModelLayerLocation boatModelLayer(String namespace, String id)
      Returns:
      the texture path for a normal boat.
    • chestBoatModelLayer

      public static net.minecraft.client.model.geom.ModelLayerLocation chestBoatModelLayer(String namespace, String id)
      Returns:
      the texture path for a chest boat.
    • i_

      public static void i_()
      Initializes this class.