Class VariantBlockStateBuilder.PartialBlockstate
java.lang.Object
net.minecraftforge.client.model.generators.VariantBlockStateBuilder.PartialBlockstate
- All Implemented Interfaces:
- Predicate<BlockState>
- Enclosing class:
- VariantBlockStateBuilder
public static class VariantBlockStateBuilder.PartialBlockstate
extends Object
implements Predicate<BlockState>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final VariantBlockStateBuilderprivate final Blockprivate final SortedMap<Property<?>,Comparable<?>> 
- 
Constructor SummaryConstructorsConstructorDescriptionPartialBlockstate(Block owner, Map<Property<?>, Comparable<?>> setStates, VariantBlockStateBuilder outerBuilder) PartialBlockstate(Block owner, VariantBlockStateBuilder outerBuilder) 
- 
Method SummaryModifier and TypeMethodDescriptionaddModels(ConfiguredModel... models) Add models to the current state's variant.private voidbooleangetOwner()SortedMap<Property<?>,Comparable<?>> inthashCode()Creates a builder for models to assign to this state, which when completed viaConfiguredModel.Builder.addModel()will assign the resultant set of models to this state.Complete this state without adding any new models, and return a new partial state via the parent builder.setModels(ConfiguredModel... models) Set this variant's models, and return the parent builder.booleantest(BlockState blockState) toString()<T extends Comparable<T>>
 VariantBlockStateBuilder.PartialBlockstate
- 
Field Details- 
owner
- 
setStates
- 
outerBuilder
 
- 
- 
Constructor Details- 
PartialBlockstatePartialBlockstate(Block owner, @Nullable VariantBlockStateBuilder outerBuilder) 
- 
PartialBlockstatePartialBlockstate(Block owner, Map<Property<?>, Comparable<?>> setStates, @Nullable VariantBlockStateBuilder outerBuilder) 
 
- 
- 
Method Details- 
withpublic <T extends Comparable<T>> VariantBlockStateBuilder.PartialBlockstate with(Property<T> prop, T value) 
- 
checkValidOwnerprivate void checkValidOwner()
- 
modelForStateCreates a builder for models to assign to this state, which when completed viaConfiguredModel.Builder.addModel()will assign the resultant set of models to this state.- Returns:
- the model builder
- See Also:
 
- 
addModelsAdd models to the current state's variant. For use when it is more convenient to add multiple sets of models, as a replacement forsetModels(ConfiguredModel...).- Parameters:
- models- The models to add.
- Returns:
- this
- Throws:
- NullPointerException- If the parent builder is- null
 
- 
setModelsSet this variant's models, and return the parent builder.- Parameters:
- models- The models to set
- Returns:
- The parent builder instance
- Throws:
- NullPointerException- If the parent builder is- null
 
- 
partialStateComplete this state without adding any new models, and return a new partial state via the parent builder. For use after callingaddModels(ConfiguredModel...).- Returns:
- A fresh partial state as specified by
         VariantBlockStateBuilder.partialState().
- Throws:
- NullPointerException- If the parent builder is- null
 
- 
equals
- 
hashCodepublic int hashCode()
- 
getOwner
- 
getSetStates
- 
test- Specified by:
- testin interface- Predicate<BlockState>
 
- 
toString
- 
comparingByProperties
 
-