private static class BlockStateLoader.ForgeVariant extends Variant implements ISmartVariant
Variant.Deserializer
Modifier and Type | Field and Description |
---|---|
private ResourceLocation |
blockstateLocation |
private com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> |
customData |
private java.util.Optional<java.lang.Boolean> |
gui3d |
private com.google.common.collect.ImmutableMap<java.lang.String,BlockStateLoader.SubModel> |
parts |
private java.util.Optional<java.lang.Boolean> |
smooth |
private IModelState |
state |
private com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> |
textures |
Constructor and Description |
---|
ForgeVariant(ResourceLocation blockstateLocation,
ResourceLocation model,
IModelState state,
boolean uvLock,
java.util.Optional<java.lang.Boolean> smooth,
java.util.Optional<java.lang.Boolean> gui3d,
int weight,
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures,
com.google.common.collect.ImmutableMap<java.lang.String,BlockStateLoader.SubModel> parts,
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData) |
Modifier and Type | Method and Description |
---|---|
IModelState |
getState() |
IModel |
process(IModel base)
Used to replace the base model with a re-textured model containing sub-models.
|
private IModel |
runModelHooks(IModel base,
java.util.Optional<java.lang.Boolean> smooth,
java.util.Optional<java.lang.Boolean> gui3d,
boolean uvlock,
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textureMap,
com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData) |
java.lang.String |
toString() |
equals, getModelLocation, getRotation, getWeight, hashCode, isUvLock
private final ResourceLocation blockstateLocation
private final com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures
private final com.google.common.collect.ImmutableMap<java.lang.String,BlockStateLoader.SubModel> parts
private final com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData
private final java.util.Optional<java.lang.Boolean> smooth
private final java.util.Optional<java.lang.Boolean> gui3d
private final IModelState state
ForgeVariant(ResourceLocation blockstateLocation, @Nullable ResourceLocation model, IModelState state, boolean uvLock, java.util.Optional<java.lang.Boolean> smooth, java.util.Optional<java.lang.Boolean> gui3d, int weight, com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textures, com.google.common.collect.ImmutableMap<java.lang.String,BlockStateLoader.SubModel> parts, com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
private IModel runModelHooks(IModel base, java.util.Optional<java.lang.Boolean> smooth, java.util.Optional<java.lang.Boolean> gui3d, boolean uvlock, com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> textureMap, com.google.common.collect.ImmutableMap<java.lang.String,java.lang.String> customData)
public IModel process(IModel base)
process
in interface ISmartVariant
process
in class Variant
public IModelState getState()