public class ItemModelGenerator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ItemModelGenerator.Span |
(package private) static class |
ItemModelGenerator.SpanFacing |
Modifier and Type | Field and Description |
---|---|
static java.util.List<java.lang.String> |
LAYERS |
Constructor and Description |
---|
ItemModelGenerator() |
Modifier and Type | Method and Description |
---|---|
private void |
checkTransition(ItemModelGenerator.SpanFacing spanFacingIn,
java.util.List<ItemModelGenerator.Span> listSpansIn,
TextureAtlasSprite spriteIn,
int frameIndex,
int pixelX,
int pixelY,
int spiteWidth,
int spriteHeight,
boolean p_199338_9_) |
private void |
createOrExpandSpan(java.util.List<ItemModelGenerator.Span> listSpansIn,
ItemModelGenerator.SpanFacing spanFacingIn,
int pixelX,
int pixelY) |
private java.util.List<BlockPart> |
getBlockParts(int tintIndex,
java.lang.String textureIn,
TextureAtlasSprite spriteIn) |
private java.util.List<BlockPart> |
getBlockParts(TextureAtlasSprite spriteIn,
java.lang.String textureIn,
int tintIndexIn) |
private java.util.List<ItemModelGenerator.Span> |
getSpans(TextureAtlasSprite spriteIn) |
private boolean |
isTransparent(TextureAtlasSprite spriteIn,
int frameIndex,
int pixelX,
int pixelY,
int spiteWidth,
int spriteHeight) |
BlockModel |
makeItemModel(java.util.function.Function<Material,TextureAtlasSprite> textureGetter,
BlockModel blockModelIn) |
public BlockModel makeItemModel(java.util.function.Function<Material,TextureAtlasSprite> textureGetter, BlockModel blockModelIn)
private java.util.List<BlockPart> getBlockParts(int tintIndex, java.lang.String textureIn, TextureAtlasSprite spriteIn)
private java.util.List<BlockPart> getBlockParts(TextureAtlasSprite spriteIn, java.lang.String textureIn, int tintIndexIn)
private java.util.List<ItemModelGenerator.Span> getSpans(TextureAtlasSprite spriteIn)
private void checkTransition(ItemModelGenerator.SpanFacing spanFacingIn, java.util.List<ItemModelGenerator.Span> listSpansIn, TextureAtlasSprite spriteIn, int frameIndex, int pixelX, int pixelY, int spiteWidth, int spriteHeight, boolean p_199338_9_)
private void createOrExpandSpan(java.util.List<ItemModelGenerator.Span> listSpansIn, ItemModelGenerator.SpanFacing spanFacingIn, int pixelX, int pixelY)
private boolean isTransparent(TextureAtlasSprite spriteIn, int frameIndex, int pixelX, int pixelY, int spiteWidth, int spriteHeight)