Class ItemModelGenerator
- java.lang.Object
-
- net.minecraft.client.renderer.model.ItemModelGenerator
-
public class ItemModelGenerator extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
ItemModelGenerator.Span
(package private) static class
ItemModelGenerator.SpanFacing
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<java.lang.String>
LAYERS
-
Constructor Summary
Constructors Constructor Description ItemModelGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
checkTransition(ItemModelGenerator.SpanFacing p_199338_1_, java.util.List<ItemModelGenerator.Span> p_199338_2_, TextureAtlasSprite p_199338_3_, int p_199338_4_, int p_199338_5_, int p_199338_6_, int p_199338_7_, int p_199338_8_, boolean p_199338_9_)
private void
createOrExpandSpan(java.util.List<ItemModelGenerator.Span> p_178395_1_, ItemModelGenerator.SpanFacing p_178395_2_, int p_178395_3_, int p_178395_4_)
private java.util.List<BlockPart>
createSideElements(TextureAtlasSprite p_178397_1_, java.lang.String p_178397_2_, int p_178397_3_)
BlockModel
generateBlockModel(java.util.function.Function<RenderMaterial,TextureAtlasSprite> p_209579_1_, BlockModel p_209579_2_)
private java.util.List<ItemModelGenerator.Span>
getSpans(TextureAtlasSprite p_178393_1_)
private boolean
isTransparent(TextureAtlasSprite p_199339_1_, int p_199339_2_, int p_199339_3_, int p_199339_4_, int p_199339_5_, int p_199339_6_)
private java.util.List<BlockPart>
processFrames(int p_178394_1_, java.lang.String p_178394_2_, TextureAtlasSprite p_178394_3_)
-
-
-
Method Detail
-
generateBlockModel
public BlockModel generateBlockModel(java.util.function.Function<RenderMaterial,TextureAtlasSprite> p_209579_1_, BlockModel p_209579_2_)
-
processFrames
private java.util.List<BlockPart> processFrames(int p_178394_1_, java.lang.String p_178394_2_, TextureAtlasSprite p_178394_3_)
-
createSideElements
private java.util.List<BlockPart> createSideElements(TextureAtlasSprite p_178397_1_, java.lang.String p_178397_2_, int p_178397_3_)
-
getSpans
private java.util.List<ItemModelGenerator.Span> getSpans(TextureAtlasSprite p_178393_1_)
-
checkTransition
private void checkTransition(ItemModelGenerator.SpanFacing p_199338_1_, java.util.List<ItemModelGenerator.Span> p_199338_2_, TextureAtlasSprite p_199338_3_, int p_199338_4_, int p_199338_5_, int p_199338_6_, int p_199338_7_, int p_199338_8_, boolean p_199338_9_)
-
createOrExpandSpan
private void createOrExpandSpan(java.util.List<ItemModelGenerator.Span> p_178395_1_, ItemModelGenerator.SpanFacing p_178395_2_, int p_178395_3_, int p_178395_4_)
-
isTransparent
private boolean isTransparent(TextureAtlasSprite p_199339_1_, int p_199339_2_, int p_199339_3_, int p_199339_4_, int p_199339_5_, int p_199339_6_)
-
-