public class ModelUtil extends java.lang.Object implements ICacheClearable
Modifier and Type | Method and Description |
---|---|
void |
clearCache() |
static net.minecraft.client.renderer.texture.TextureAtlasSprite |
findQuadTexture(net.minecraft.client.renderer.block.model.BakedQuad q,
net.minecraft.block.state.IBlockState state) |
static net.minecraft.client.renderer.texture.TextureAtlasSprite |
findTexture(int BlockRef,
net.minecraft.client.renderer.block.model.IBakedModel model,
net.minecraft.util.EnumFacing myFace,
net.minecraft.util.BlockRenderLayer layer) |
static ChiseledBlockBaked |
getBreakingModel(ChiselLayer layer,
java.lang.Integer blockStateID) |
static ModelQuadLayer[] |
getCachedFace(int stateID,
long weight,
net.minecraft.util.EnumFacing face,
net.minecraft.util.BlockRenderLayer layer) |
static java.lang.Integer |
getItemStackColor(net.minecraft.item.ItemStack target,
int tint) |
static boolean |
isOne(float v) |
static boolean |
isZero(float v) |
static net.minecraft.client.renderer.block.model.IBakedModel |
solveModel(net.minecraft.block.state.IBlockState state,
long weight,
net.minecraft.client.renderer.block.model.IBakedModel originalModel,
net.minecraft.util.BlockRenderLayer layer) |
public void clearCache()
clearCache
in interface ICacheClearable
public static ModelQuadLayer[] getCachedFace(int stateID, long weight, net.minecraft.util.EnumFacing face, net.minecraft.util.BlockRenderLayer layer)
public static net.minecraft.client.renderer.texture.TextureAtlasSprite findQuadTexture(net.minecraft.client.renderer.block.model.BakedQuad q, net.minecraft.block.state.IBlockState state) throws java.lang.IllegalArgumentException, java.lang.IllegalAccessException, java.lang.NullPointerException
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.NullPointerException
public static net.minecraft.client.renderer.block.model.IBakedModel solveModel(net.minecraft.block.state.IBlockState state, long weight, net.minecraft.client.renderer.block.model.IBakedModel originalModel, net.minecraft.util.BlockRenderLayer layer)
public static net.minecraft.client.renderer.texture.TextureAtlasSprite findTexture(int BlockRef, net.minecraft.client.renderer.block.model.IBakedModel model, net.minecraft.util.EnumFacing myFace, net.minecraft.util.BlockRenderLayer layer)
public static boolean isOne(float v)
public static boolean isZero(float v)
public static java.lang.Integer getItemStackColor(net.minecraft.item.ItemStack target, int tint)
public static ChiseledBlockBaked getBreakingModel(ChiselLayer layer, java.lang.Integer blockStateID)