Class ClientFactories
java.lang.Object
net.dillon.dillonlib.factory.ClientFactories
Stores client-side factories for different Minecraft items and blocks.
- Since:
- 1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.client.model.geom.ModelLayerLocationboatModelLayer(String namespace, String id) static net.minecraft.client.model.geom.ModelLayerLocationchestBoatModelLayer(String namespace, String id) static net.minecraft.client.KeyMappingcreateKeyMapping(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 akey binding factory,with an functional action and a message to send.static voidi_()Initializes this class.
-
Field Details
-
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 akey binding factory,with an functional action and a message to send.- Parameters:
key- the translation key for the keybindcategory- the group that this keybind should be in, found in the "Controls" menu.code- the keycode for the keybind (seeGLFW.)consumer- theConsumerthat the keybind should execute (typically in-game).
-
boatModelLayer
-
chestBoatModelLayer
-
i_
public static void i_()Initializes this class.
-