Class BlockStateBuilder
java.lang.Object
net.buildtheearth.terraminusminus.substitutes.BlockStateBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()static BlockStateBuilderget()reset()setBlock(Identifier name) setFrom(BlockState state) setFromSerializedString(@NotNull String serialized) Sets values in thisbuilderby parsing a serializedBlockStatestring.setProperty(String property, boolean value) setProperty(String property, int value) setProperty(String property, String value)
-
Constructor Details
-
BlockStateBuilder
public BlockStateBuilder()
-
-
Method Details
-
get
-
setBlock
-
setProperty
-
setProperty
-
setProperty
-
setFrom
-
setFromSerializedString
Sets values in thisbuilderby parsing a serializedBlockStatestring.- Parameters:
serialized- the serializedBlockState, in the Minecraft command syntax- Returns:
- this
builder - Throws:
IllegalArgumentException- if the supplied string is not a valid serializedBlockState
-
build
-
reset
-