Class ItemModelGenerator
java.lang.Object
net.minecraft.client.renderer.block.model.ItemModelGenerator
- All Implemented Interfaces:
ResolvableModel
,UnbakedModel
,UnbakedModelExtension
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
(package private) static enum
Nested classes/interfaces inherited from interface net.minecraft.client.resources.model.ResolvableModel
ResolvableModel.Resolver
Nested classes/interfaces inherited from interface net.minecraft.client.resources.model.UnbakedModel
UnbakedModel.GuiLight
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceLocation
private static final float
private static final float
private static final BlockElementFace.UVs
private static final BlockElementFace.UVs
private static final TextureSlots.Data
Fields inherited from interface net.minecraft.client.resources.model.UnbakedModel
PARTICLE_TEXTURE_REFERENCE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static QuadCollection
bake
(TextureSlots p_387202_, ModelBaker p_405519_, ModelState p_387172_, ModelDebugName p_405600_) private static QuadCollection
bake
(TextureSlots p_386773_, SpriteGetter p_405238_, ModelState p_386536_, ModelDebugName p_404999_) private static void
checkTransition
(ItemModelGenerator.SpanFacing p_251572_, List<ItemModelGenerator.Span> p_248882_, SpriteContents p_249847_, int p_250616_, int p_251416_, int p_249664_, int p_250174_, int p_250897_, boolean p_248773_) private static void
createOrExpandSpan
(List<ItemModelGenerator.Span> p_111666_, ItemModelGenerator.SpanFacing p_111667_, int p_111668_, int p_111669_) private static List
<BlockElement> createSideElements
(SpriteContents p_248810_, String p_111663_, int p_111664_) geometry()
private static List
<ItemModelGenerator.Span> getSpans
(SpriteContents p_250338_) guiLight()
private static boolean
isTransparent
(SpriteContents p_249650_, int p_250692_, int p_251914_, int p_252343_, int p_250258_, int p_248997_) static List
<BlockElement> processFrames
(int p_111639_, String p_111640_, SpriteContents p_251768_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.resources.model.UnbakedModel
ambientOcclusion, parent, transforms
Methods inherited from interface net.neoforged.neoforge.client.extensions.UnbakedModelExtension
fillAdditionalProperties, resolveDependencies
-
Field Details
-
GENERATED_ITEM_MODEL_ID
-
LAYERS
-
MIN_Z
private static final float MIN_Z- See Also:
-
MAX_Z
private static final float MAX_Z- See Also:
-
TEXTURE_SLOTS
-
SOUTH_FACE_UVS
-
NORTH_FACE_UVS
-
-
Constructor Details
-
ItemModelGenerator
public ItemModelGenerator()
-
-
Method Details
-
textureSlots
- Specified by:
textureSlots
in interfaceUnbakedModel
-
geometry
- Specified by:
geometry
in interfaceUnbakedModel
-
guiLight
- Specified by:
guiLight
in interfaceUnbakedModel
-
bake
private static QuadCollection bake(TextureSlots p_387202_, ModelBaker p_405519_, ModelState p_387172_, ModelDebugName p_405600_) -
bake
private static QuadCollection bake(TextureSlots p_386773_, SpriteGetter p_405238_, ModelState p_386536_, ModelDebugName p_404999_) -
processFrames
public static List<BlockElement> processFrames(int p_111639_, String p_111640_, SpriteContents p_251768_) -
createSideElements
private static List<BlockElement> createSideElements(SpriteContents p_248810_, String p_111663_, int p_111664_) -
getSpans
-
checkTransition
private static void checkTransition(ItemModelGenerator.SpanFacing p_251572_, List<ItemModelGenerator.Span> p_248882_, SpriteContents p_249847_, int p_250616_, int p_251416_, int p_249664_, int p_250174_, int p_250897_, boolean p_248773_) -
createOrExpandSpan
private static void createOrExpandSpan(List<ItemModelGenerator.Span> p_111666_, ItemModelGenerator.SpanFacing p_111667_, int p_111668_, int p_111669_) -
isTransparent
private static boolean isTransparent(SpriteContents p_249650_, int p_250692_, int p_251914_, int p_252343_, int p_250258_, int p_248997_)
-