public class ModelBlock
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
ModelBlock.Bookkeep |
static class |
ModelBlock.Deserializer |
static class |
ModelBlock.LoopException |
Modifier and Type | Field and Description |
---|---|
boolean |
ambientOcclusion |
private ItemCameraTransforms |
cameraTransforms |
private java.util.List<BlockPart> |
elements |
private boolean |
gui3d |
private static org.apache.logging.log4j.Logger |
LOGGER |
java.lang.String |
name |
private java.util.List<ItemOverride> |
overrides |
ModelBlock |
parent |
protected ResourceLocation |
parentLocation |
(package private) static com.google.gson.Gson |
SERIALIZER |
java.util.Map<java.lang.String,java.lang.String> |
textures |
Constructor and Description |
---|
ModelBlock(ResourceLocation parentLocationIn,
java.util.List<BlockPart> elementsIn,
java.util.Map<java.lang.String,java.lang.String> texturesIn,
boolean ambientOcclusionIn,
boolean gui3dIn,
ItemCameraTransforms cameraTransformsIn,
java.util.List<ItemOverride> overridesIn) |
private static final org.apache.logging.log4j.Logger LOGGER
static final com.google.gson.Gson SERIALIZER
private final java.util.List<BlockPart> elements
private final boolean gui3d
public final boolean ambientOcclusion
private final ItemCameraTransforms cameraTransforms
private final java.util.List<ItemOverride> overrides
public java.lang.String name
public final java.util.Map<java.lang.String,java.lang.String> textures
public ModelBlock parent
protected ResourceLocation parentLocation
public ModelBlock(@Nullable ResourceLocation parentLocationIn, java.util.List<BlockPart> elementsIn, java.util.Map<java.lang.String,java.lang.String> texturesIn, boolean ambientOcclusionIn, boolean gui3dIn, ItemCameraTransforms cameraTransformsIn, java.util.List<ItemOverride> overridesIn)
public static ModelBlock deserialize(java.io.Reader readerIn)
public static ModelBlock deserialize(java.lang.String jsonString)
public java.util.List<BlockPart> getElements()
private boolean hasParent()
public boolean isAmbientOcclusion()
public boolean isGui3d()
public boolean isResolved()
public void getParentFromMap(java.util.Map<ResourceLocation,ModelBlock> p_178299_1_)
public java.util.Collection<ResourceLocation> getOverrideLocations()
public java.util.List<ItemOverride> getOverrides()
public ItemOverrideList createOverrides()
public boolean isTexturePresent(java.lang.String textureName)
public java.lang.String resolveTextureName(java.lang.String textureName)
private java.lang.String resolveTextureName(java.lang.String textureName, ModelBlock.Bookkeep p_178302_2_)
private boolean startsWithHash(java.lang.String hash)
@Nullable public ResourceLocation getParentLocation()
public ModelBlock getRootModel()
public ItemCameraTransforms getAllTransforms()
private ItemTransformVec3f getTransform(ItemCameraTransforms.TransformType type)
public static void checkModelHierarchy(java.util.Map<ResourceLocation,ModelBlock> p_178312_0_)