Class MultiPartBlockStateBuilder.PartBuilder.ConditionGroup
java.lang.Object
net.minecraftforge.client.model.generators.MultiPartBlockStateBuilder.PartBuilder.ConditionGroup
- Enclosing class:
- MultiPartBlockStateBuilder.PartBuilder
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal com.google.common.collect.Multimap<Property<?>,Comparable<?>> boolean
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal <T extends Comparable<T>>
 MultiPartBlockStateBuilder.PartBuilder.ConditionGroupSet a condition for this part, which consists of a property and a set of valid values.end()Ends this condition group and returns the part builderEnds this nested condition group and returns the parent condition groupAllows having nested groups of conditions if there are not any normal conditions.(package private) com.google.gson.JsonObjecttoJson()useOr()Makes this part get applied if any of the conditions/condition groups are true, instead of all of them needing to be true.
- 
Field Details- 
conditions
- 
nestedConditionGroups
- 
parent
- 
useOrpublic boolean useOr
 
- 
- 
Constructor Details- 
ConditionGrouppublic ConditionGroup()
 
- 
- 
Method Details- 
condition@SafeVarargs public final <T extends Comparable<T>> MultiPartBlockStateBuilder.PartBuilder.ConditionGroup condition(Property<T> prop, T... values) Set a condition for this part, which consists of a property and a set of valid values. Can be called multiple times for multiple different properties.- Type Parameters:
- T- the type of the property value
- Parameters:
- prop- the property
- values- a set of valid values
- Returns:
- this builder
- Throws:
- NullPointerException- if- propis- null
- NullPointerException- if- valuesis- null
- IllegalArgumentException- if- valuesis empty
- IllegalArgumentException- if- prophas already been configured
- IllegalArgumentException- if- propis not applicable to the current block's state
- IllegalStateException- if- !nestedConditionGroups.isEmpty()
 
- 
nestedGroupAllows having nested groups of conditions if there are not any normal conditions.- Throws:
- IllegalStateException- if- !conditions.isEmpty()
 
- 
endNestedGroupEnds this nested condition group and returns the parent condition group- Throws:
- IllegalStateException- If this is not a nested condition group
 
- 
endEnds this condition group and returns the part builder- Throws:
- IllegalStateException- If this is a nested condition group
 
- 
useOrMakes this part get applied if any of the conditions/condition groups are true, instead of all of them needing to be true.
- 
toJsoncom.google.gson.JsonObject toJson()
 
-