类 MultiPartBlockStateBuilder.PartBuilder
java.lang.Object
net.minecraftforge.client.model.generators.MultiPartBlockStateBuilder.PartBuilder
-
嵌套类概要
嵌套类 -
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
canApplyTo
(Block b) final <T extends Comparable<T>>
MultiPartBlockStateBuilder.PartBuilderSet a condition for this part, which consists of a property and a set of valid values.end()
Allows 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.
-
字段详细资料
-
models
-
useOr
public boolean useOr -
conditions
-
nestedConditionGroups
-
-
构造器详细资料
-
PartBuilder
PartBuilder(BlockStateProvider.ConfiguredModelList models)
-
-
方法详细资料
-
useOr
Makes this part get applied if any of the conditions/condition groups are true, instead of all of them needing to be true. -
condition
@SafeVarargs public final <T extends Comparable<T>> MultiPartBlockStateBuilder.PartBuilder 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()
-
end
-
toJson
com.google.gson.JsonObject toJson() -
canApplyTo
-