类 VariantBlockStateBuilder.PartialBlockstate
java.lang.Object
net.minecraftforge.client.model.generators.VariantBlockStateBuilder.PartialBlockstate
- 所有已实现的接口:
Predicate<BlockState>
public static class VariantBlockStateBuilder.PartialBlockstate
extends Object
implements Predicate<BlockState>
-
字段概要
字段修饰符和类型字段说明private final @Nullable VariantBlockStateBuilder
private final Block
private final SortedMap
<Property<?>, Comparable<?>> -
构造器概要
构造器构造器说明PartialBlockstate
(Block owner, Map<Property<?>, Comparable<?>> setStates, @Nullable VariantBlockStateBuilder outerBuilder) PartialBlockstate
(Block owner, @Nullable VariantBlockStateBuilder outerBuilder) -
方法概要
修饰符和类型方法说明addModels
(ConfiguredModel... models) Add models to the current state's variant.private void
boolean
getOwner()
SortedMap
<Property<?>, Comparable<?>> int
hashCode()
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.boolean
test
(BlockState blockState) toString()
<T extends Comparable<T>>
VariantBlockStateBuilder.PartialBlockstate
-
字段详细资料
-
owner
-
setStates
-
outerBuilder
-
-
构造器详细资料
-
PartialBlockstate
PartialBlockstate(Block owner, @Nullable @Nullable VariantBlockStateBuilder outerBuilder) -
PartialBlockstate
PartialBlockstate(Block owner, Map<Property<?>, Comparable<?>> setStates, @Nullable @Nullable VariantBlockStateBuilder outerBuilder)
-
-
方法详细资料
-
with
public <T extends Comparable<T>> VariantBlockStateBuilder.PartialBlockstate with(Property<T> prop, T value) -
checkValidOwner
private void checkValidOwner() -
modelForState
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.- 返回:
- the model builder
- 另请参阅:
-
addModels
Add 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...)
.- 参数:
models
- The models to add.- 返回:
this
- 抛出:
NullPointerException
- If the parent builder isnull
-
setModels
Set this variant's models, and return the parent builder.- 参数:
models
- The models to set- 返回:
- The parent builder instance
- 抛出:
NullPointerException
- If the parent builder isnull
-
partialState
Complete this state without adding any new models, and return a new partial state via the parent builder. For use after callingaddModels(ConfiguredModel...)
.- 返回:
- A fresh partial state as specified by
VariantBlockStateBuilder.partialState()
. - 抛出:
NullPointerException
- If the parent builder isnull
-
equals
-
hashCode
public int hashCode() -
getOwner
-
getSetStates
-
test
- 指定者:
test
在接口中Predicate<BlockState>
-
toString
-
comparingByProperties
-