@Environment(value=CLIENT) public class ItemModelGenerator extends Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ItemModelGenerator.Frame |
(package private) static class |
ItemModelGenerator.Side |
Constructor and Description |
---|
ItemModelGenerator() |
Modifier and Type | Method and Description |
---|---|
private List<ModelElement> |
addLayerElements(int layer,
String key,
Sprite sprite) |
private List<ModelElement> |
addSubComponents(Sprite sprite,
String key,
int layer) |
private void |
buildCube(ItemModelGenerator.Side side,
List<ItemModelGenerator.Frame> cubes,
Sprite sprite,
int frame,
int x,
int y,
int int2,
int int3,
boolean bool) |
private void |
buildCube(List<ItemModelGenerator.Frame> cubes,
ItemModelGenerator.Side side,
int x,
int y) |
JsonUnbakedModel |
create(Function<SpriteIdentifier,Sprite> textureGetter,
JsonUnbakedModel blockModel) |
private List<ItemModelGenerator.Frame> |
getFrames(Sprite sprite) |
private boolean |
isPixelTransparent(Sprite sprite,
int frame,
int x,
int y,
int int2,
int int3) |
public JsonUnbakedModel create(Function<SpriteIdentifier,Sprite> textureGetter, JsonUnbakedModel blockModel)
private List<ModelElement> addLayerElements(int layer, String key, Sprite sprite)
private List<ModelElement> addSubComponents(Sprite sprite, String key, int layer)
private List<ItemModelGenerator.Frame> getFrames(Sprite sprite)
private void buildCube(ItemModelGenerator.Side side, List<ItemModelGenerator.Frame> cubes, Sprite sprite, int frame, int x, int y, int int2, int int3, boolean bool)
private void buildCube(List<ItemModelGenerator.Frame> cubes, ItemModelGenerator.Side side, int x, int y)
private boolean isPixelTransparent(Sprite sprite, int frame, int x, int y, int int2, int int3)