public static class StateMap.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
StateMap |
build()
Build a new
StateMap with the settings contained in this StateMap.Builder . |
StateMap.Builder |
ignore(IProperty<?>... ignores)
Ignore the listed
IProperty s when building the variant string for the final ModelResourceLocation . |
StateMap.Builder |
withName(IProperty<?> builderPropertyIn) |
StateMap.Builder |
withSuffix(java.lang.String builderSuffixIn) |
public StateMap.Builder withName(IProperty<?> builderPropertyIn)
public StateMap.Builder withSuffix(java.lang.String builderSuffixIn)
public StateMap.Builder ignore(IProperty<?>... ignores)
IProperty
s when building the variant string for the final ModelResourceLocation
. It is valid to pass a Block
that does not have one of these IProperty
s to the built StateMap
.ignores
- the IProperty
s to ignore when building a variant stringthis
, for convenience in chainingpublic StateMap build()
StateMap
with the settings contained in this StateMap.Builder
. The StateMap
will work with any Block
that has the required IProperty
s.StateMap
with the settings contained in this StateMap.Builder
ignore(IProperty...)
,
withName(IProperty)
,
withSuffix(String)