Modifier and Type | Class and Description |
---|---|
private static class |
ItemLayerModel.FaceData |
static class |
ItemLayerModel.Loader |
Modifier and Type | Field and Description |
---|---|
private static EnumFacing[] |
HORIZONTALS |
static ItemLayerModel |
INSTANCE |
private ItemOverrideList |
overrides |
private com.google.common.collect.ImmutableList<ResourceLocation> |
textures |
private static EnumFacing[] |
VERTICALS |
Constructor and Description |
---|
ItemLayerModel(com.google.common.collect.ImmutableList<ResourceLocation> textures) |
ItemLayerModel(com.google.common.collect.ImmutableList<ResourceLocation> textures,
ItemOverrideList overrides) |
ItemLayerModel(ModelBlock model) |
Modifier and Type | Method and Description |
---|---|
IBakedModel |
bake(IModelState state,
VertexFormat format,
java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter) |
private static BakedQuad |
buildQuad(VertexFormat format,
java.util.Optional<TRSRTransformation> transform,
EnumFacing side,
TextureAtlasSprite sprite,
int tint,
float x0,
float y0,
float z0,
float u0,
float v0,
float x1,
float y1,
float z1,
float u1,
float v1,
float x2,
float y2,
float z2,
float u2,
float v2,
float x3,
float y3,
float z3,
float u3,
float v3) |
private static BakedQuad |
buildSideQuad(VertexFormat format,
java.util.Optional<TRSRTransformation> transform,
EnumFacing side,
int tint,
TextureAtlasSprite sprite,
int u,
int v,
int size) |
private static int |
getAlpha(int[] pixels,
int uMax,
int vMax,
int u,
int v) |
static com.google.common.collect.ImmutableList<BakedQuad> |
getQuadsForSprite(int tint,
TextureAtlasSprite sprite,
VertexFormat format,
java.util.Optional<TRSRTransformation> transform) |
java.util.Collection<ResourceLocation> |
getTextures() |
private static com.google.common.collect.ImmutableList<ResourceLocation> |
getTextures(ModelBlock model) |
private static void |
putVertex(IVertexConsumer consumer,
VertexFormat format,
EnumFacing side,
float x,
float y,
float z,
float u,
float v) |
private static EnumFacing |
remap(EnumFacing side) |
ItemLayerModel |
retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
Applies new textures to the model.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asVanillaModel, getClip, getDefaultState, getDependencies, gui3d, process, smoothLighting, uvlock
public static final ItemLayerModel INSTANCE
private static final EnumFacing[] HORIZONTALS
private static final EnumFacing[] VERTICALS
private final com.google.common.collect.ImmutableList<ResourceLocation> textures
private final ItemOverrideList overrides
public ItemLayerModel(com.google.common.collect.ImmutableList<ResourceLocation> textures)
public ItemLayerModel(com.google.common.collect.ImmutableList<ResourceLocation> textures, ItemOverrideList overrides)
public ItemLayerModel(ModelBlock model)
private static com.google.common.collect.ImmutableList<ResourceLocation> getTextures(ModelBlock model)
public java.util.Collection<ResourceLocation> getTextures()
getTextures
in interface IModel
public ItemLayerModel retexture(com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures)
IModel
public IBakedModel bake(IModelState state, VertexFormat format, java.util.function.Function<ResourceLocation,TextureAtlasSprite> bakedTextureGetter)
public static com.google.common.collect.ImmutableList<BakedQuad> getQuadsForSprite(int tint, TextureAtlasSprite sprite, VertexFormat format, java.util.Optional<TRSRTransformation> transform)
private static int getAlpha(int[] pixels, int uMax, int vMax, int u, int v)
private static BakedQuad buildSideQuad(VertexFormat format, java.util.Optional<TRSRTransformation> transform, EnumFacing side, int tint, TextureAtlasSprite sprite, int u, int v, int size)
private static EnumFacing remap(EnumFacing side)
private static BakedQuad buildQuad(VertexFormat format, java.util.Optional<TRSRTransformation> transform, EnumFacing side, TextureAtlasSprite sprite, int tint, float x0, float y0, float z0, float u0, float v0, float x1, float y1, float z1, float u1, float v1, float x2, float y2, float z2, float u2, float v2, float x3, float y3, float z3, float u3, float v3)
private static void putVertex(IVertexConsumer consumer, VertexFormat format, EnumFacing side, float x, float y, float z, float u, float v)