类 MultiPartBlockStateBuilder.PartBuilder.ConditionGroup
java.lang.Object
net.minecraftforge.client.model.generators.MultiPartBlockStateBuilder.PartBuilder.ConditionGroup
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明final <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.(专用程序包) com.google.gson.JsonObject
toJson()
useOr()
Makes this part get applied if any of the conditions/condition groups are true, instead of all of them needing to be true.
-
字段详细资料
-
conditions
-
nestedConditionGroups
-
parent
-
useOr
public boolean useOr
-
-
构造器详细资料
-
ConditionGroup
public ConditionGroup()
-
-
方法详细资料
-
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.- 类型参数:
T
- the type of the property value- 参数:
prop
- the propertyvalues
- a set of valid values- 返回:
- this builder
- 抛出:
NullPointerException
- ifprop
isnull
NullPointerException
- ifvalues
isnull
IllegalArgumentException
- ifvalues
is emptyIllegalArgumentException
- ifprop
has already been configuredIllegalArgumentException
- ifprop
is not applicable to the current block's stateIllegalStateException
- if!nestedConditionGroups.isEmpty()
-
nestedGroup
Allows having nested groups of conditions if there are not any normal conditions.- 抛出:
IllegalStateException
- if!conditions.isEmpty()
-
endNestedGroup
Ends this nested condition group and returns the parent condition group- 抛出:
IllegalStateException
- If this is not a nested condition group
-
end
Ends this condition group and returns the part builder- 抛出:
IllegalStateException
- If this is a nested condition group
-
useOr
Makes this part get applied if any of the conditions/condition groups are true, instead of all of them needing to be true. -
toJson
com.google.gson.JsonObject toJson()
-