public static class ForgeBlockStateV1.Variant
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ForgeBlockStateV1.Variant.Deserializer |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.lang.String> |
customData |
private java.util.Optional<java.lang.Boolean> |
gui3d |
private ResourceLocation |
model |
private boolean |
modelSet |
static java.lang.Object |
SET_VALUE |
private java.util.Map<java.lang.String,java.lang.Object> |
simpleSubmodels |
private java.util.Optional<java.lang.Boolean> |
smooth |
private java.util.Optional<IModelState> |
state |
private java.util.Map<java.lang.String,java.util.List<ForgeBlockStateV1.Variant>> |
submodels |
private java.util.Map<java.lang.String,java.lang.String> |
textures |
private java.util.Optional<java.lang.Boolean> |
uvLock |
private java.util.Optional<java.lang.Integer> |
weight |
Modifier | Constructor and Description |
---|---|
private |
Variant() |
private |
Variant(ForgeBlockStateV1.Variant other)
Clone a variant.
|
Modifier and Type | Method and Description |
---|---|
protected BlockStateLoader.SubModel |
asGenericSubModel() |
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> |
getCustomData() |
java.util.Optional<java.lang.Boolean> |
getGui3d() |
ResourceLocation |
getModel() |
com.google.common.collect.ImmutableMap<java.lang.String,BlockStateLoader.SubModel> |
getOnlyPartsVariant()
Gets a list containing the single variant of each part.
|
java.util.Optional<java.lang.Boolean> |
getSmooth() |
java.util.Optional<IModelState> |
getState() |
com.google.common.collect.ImmutableMap<java.lang.String,java.util.List<ForgeBlockStateV1.Variant>> |
getSubmodels() |
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> |
getTextures() |
java.util.Optional<java.lang.Boolean> |
getUvLock() |
java.util.Optional<java.lang.Integer> |
getWeight() |
boolean |
isModelSet() |
(package private) boolean |
isVanillaCompatible() |
(package private) java.util.Map<java.lang.String,java.util.List<ForgeBlockStateV1.Variant>> |
mergeModelPartVariants(java.util.Map<java.lang.String,java.util.List<ForgeBlockStateV1.Variant>> output,
java.util.Map<java.lang.String,java.util.List<ForgeBlockStateV1.Variant>> input)
Inherits model parts from a parent, creating deep clones of all Variants.
|
(package private) ForgeBlockStateV1.Variant |
sync(ForgeBlockStateV1.Variant parent)
Sets values in this variant to the input's values only if they haven't been set already.
|
public static final java.lang.Object SET_VALUE
@Nullable private ResourceLocation model
private boolean modelSet
private java.util.Optional<IModelState> state
private java.util.Optional<java.lang.Boolean> uvLock
private java.util.Optional<java.lang.Boolean> smooth
private java.util.Optional<java.lang.Boolean> gui3d
private java.util.Optional<java.lang.Integer> weight
private java.util.Map<java.lang.String,java.lang.String> textures
private java.util.Map<java.lang.String,java.util.List<ForgeBlockStateV1.Variant>> submodels
private java.util.Map<java.lang.String,java.lang.Object> simpleSubmodels
private java.util.Map<java.lang.String,java.lang.String> customData
private Variant()
private Variant(ForgeBlockStateV1.Variant other)
other
- Variant to clone.ForgeBlockStateV1.Variant sync(ForgeBlockStateV1.Variant parent)
java.util.Map<java.lang.String,java.util.List<ForgeBlockStateV1.Variant>> mergeModelPartVariants(java.util.Map<java.lang.String,java.util.List<ForgeBlockStateV1.Variant>> output, java.util.Map<java.lang.String,java.util.List<ForgeBlockStateV1.Variant>> input)
boolean isVanillaCompatible()
protected BlockStateLoader.SubModel asGenericSubModel()
public com.google.common.collect.ImmutableMap<java.lang.String,BlockStateLoader.SubModel> getOnlyPartsVariant()
public java.util.Optional<java.lang.Boolean> getSmooth()
public java.util.Optional<java.lang.Boolean> getGui3d()
@Nullable public ResourceLocation getModel()
public boolean isModelSet()
public java.util.Optional<IModelState> getState()
public java.util.Optional<java.lang.Boolean> getUvLock()
public java.util.Optional<java.lang.Integer> getWeight()
public com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> getTextures()
public com.google.common.collect.ImmutableMap<java.lang.String,java.util.List<ForgeBlockStateV1.Variant>> getSubmodels()
public com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> getCustomData()