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
IPropertys 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)
IPropertys when building the variant string for the final ModelResourceLocation. It is valid to pass a Block that does not have one of these IPropertys to the built StateMap.ignores - the IPropertys 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 IPropertys.StateMap with the settings contained in this StateMap.Builderignore(IProperty...),
withName(IProperty),
withSuffix(String)