Package com.sk89q.worldedit.world.block
Class FuzzyBlockState
java.lang.Object
com.sk89q.worldedit.world.block.BlockState
com.sk89q.worldedit.world.block.FuzzyBlockState
- All Implemented Interfaces:
Pattern
,BlockStateHolder<BlockState>
A Fuzzy BlockState. Used for partial matching.
Immutable, construct with FuzzyBlockState.Builder
.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder for FuzzyBlockState. -
Method Summary
Modifier and TypeMethodDescriptionstatic FuzzyBlockState.Builder
builder()
Gets an instance of a builder.Gets a full BlockState from this fuzzy one, filling in properties with default values where necessary.Returns an immutableBlockState
from this BlockStateHolder.Methods inherited from class com.sk89q.worldedit.world.block.BlockState
equals, equalsFuzzy, getBlockType, getState, getStates, hashCode, toBaseBlock, toBaseBlock, toString, with
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.sk89q.worldedit.world.block.BlockStateHolder
applyBlock, getAsString
-
Method Details
-
getFullState
Gets a full BlockState from this fuzzy one, filling in properties with default values where necessary.- Returns:
- The full BlockState
-
toImmutableState
Description copied from interface:BlockStateHolder
Returns an immutableBlockState
from this BlockStateHolder.- Specified by:
toImmutableState
in interfaceBlockStateHolder<BlockState>
- Overrides:
toImmutableState
in classBlockState
- Returns:
- A BlockState
-
builder
Gets an instance of a builder.- Returns:
- The builder
-