Class ItemModelGenerator
java.lang.Object
net.minecraft.client.renderer.block.model.ItemModelGenerator
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static class
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
checkTransition(ItemModelGenerator.SpanFacing p_111643_, List<ItemModelGenerator.Span> p_111644_, TextureAtlasSprite p_111645_, int p_111646_, int p_111647_, int p_111648_, int p_111649_, int p_111650_, boolean p_111651_)
private void
createOrExpandSpan(List<ItemModelGenerator.Span> p_111666_, ItemModelGenerator.SpanFacing p_111667_, int p_111668_, int p_111669_)
private List<BlockElement>
createSideElements(TextureAtlasSprite p_111662_, String p_111663_, int p_111664_)
generateBlockModel(Function<Material,TextureAtlasSprite> p_111671_, BlockModel p_111672_)
private List<ItemModelGenerator.Span>
getSpans(TextureAtlasSprite p_111653_)
private boolean
isTransparent(TextureAtlasSprite p_111655_, int p_111656_, int p_111657_, int p_111658_, int p_111659_, int p_111660_)
private List<BlockElement>
processFrames(int p_111639_, String p_111640_, TextureAtlasSprite p_111641_)
-
Field Details
-
LAYERS
-
MIN_Z
private static final float MIN_Z- See Also:
- Constant Field Values
-
MAX_Z
private static final float MAX_Z- See Also:
- Constant Field Values
-
-
Constructor Details
-
ItemModelGenerator
public ItemModelGenerator()
-
-
Method Details
-
generateBlockModel
public BlockModel generateBlockModel(Function<Material,TextureAtlasSprite> p_111671_, BlockModel p_111672_) -
processFrames
private List<BlockElement> processFrames(int p_111639_, String p_111640_, TextureAtlasSprite p_111641_) -
createSideElements
private List<BlockElement> createSideElements(TextureAtlasSprite p_111662_, String p_111663_, int p_111664_) -
getSpans
-
checkTransition
private void checkTransition(ItemModelGenerator.SpanFacing p_111643_, List<ItemModelGenerator.Span> p_111644_, TextureAtlasSprite p_111645_, int p_111646_, int p_111647_, int p_111648_, int p_111649_, int p_111650_, boolean p_111651_) -
createOrExpandSpan
private void createOrExpandSpan(List<ItemModelGenerator.Span> p_111666_, ItemModelGenerator.SpanFacing p_111667_, int p_111668_, int p_111669_) -
isTransparent
private boolean isTransparent(TextureAtlasSprite p_111655_, int p_111656_, int p_111657_, int p_111658_, int p_111659_, int p_111660_)
-