Class ItemModels
java.lang.Object
com.github.darksoulq.abyssallib.server.resource.util.ItemModels
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModelCreates a standard "generated" item model (flat item).static ModelCreates a "handheld" item model.static ModelhandheldLayered(Namespace ns, String name, Texture... layers) Creates a layered "handheld" model.static ModelhandheldRod(Namespace ns, String name, Texture layer0) Creates a "handheld_rod" item model.static ModelCreates a layered "generated" model with multiple texture overlays.static ModelCreates a model based on the vanilla spawn egg template.static ModelCreates a custom model using a specific parent template.
-
Method Details
-
generated
Creates a standard "generated" item model (flat item).Typically used for simple items like materials, food, or GUI icons.
-
handheld
Creates a "handheld" item model.Handheld models are rotated in the player's hand to look like a tool or weapon.
-
handheldRod
Creates a "handheld_rod" item model.Similar to handheld, but specifically used for fishing rods or similar tools.
-
spawnEgg
Creates a model based on the vanilla spawn egg template.Note: This template typically relies on color tints to distinguish between mobs.
-
layered
Creates a layered "generated" model with multiple texture overlays.Useful for items with colorable layers, such as leather armor or potions. Textures are assigned to
layer0,layer1, etc., in order. -
handheldLayered
Creates a layered "handheld" model.Combines multi-texture layering with the handheld rotation logic.
-
template
Creates a custom model using a specific parent template.
-