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:
Filter
,TileEntityBlock
,Pattern
,BlockStateHolder<BlockState>
,NbtValued
A Fuzzy BlockState. Used for partial matching.
Immutable, construct with FuzzyBlockState.Builder
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for FuzzyBlockState -
Constructor Summary
ConstructorsConstructorDescriptionFuzzyBlockState
(BlockState state) FuzzyBlockState
(BlockState state, Map<Property<?>, Object> values) -
Method Summary
Modifier and TypeMethodDescriptionstatic FuzzyBlockState.Builder
builder()
Gets an instance of a builder.boolean
equalsFuzzy
(BlockStateHolder<?> o) Checks if the type is the same, and if the matched states are the same.Gets a full BlockState from this fuzzy one, filling in properties with default values where necessary.Deprecated.Gets an immutable collection of the states.Gets aBaseBlock
from this BlockStateHolder.Returns an immutableBlockState
from this BlockStateHolder.Methods inherited from class com.sk89q.worldedit.world.block.BlockState
apply, applyBlock, applyTileEntity, equals, get, get, get, getBlockType, getFromInternalId, getFromOrdinal, getInternalBlockTypeId, getInternalId, getInternalPropertiesId, getMaterial, getOrdinal, getOrdinalChar, getState, getState, hashCode, isAir, toBaseBlock, toBaseBlock, toMask, toString, with, with, withProperties, withPropertyId
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
getAsString, toBaseBlock, toBaseBlock
Methods inherited from interface com.fastasyncworldedit.core.queue.Filter
appliesChunk, appliesLayer, applyChunk, finishChunk, fork, join
Methods inherited from interface com.sk89q.worldedit.world.NbtValued
getNbt, getNbtReference, hasNbtData, setNbt, setNbtData, setNbtReference
Methods inherited from interface com.sk89q.worldedit.function.pattern.Pattern
apply, applyBlock
Methods inherited from interface com.sk89q.worldedit.blocks.TileEntityBlock
getNbtId
-
Constructor Details
-
FuzzyBlockState
-
FuzzyBlockState
-
-
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
-
equalsFuzzy
Description copied from interface:BlockStateHolder
Checks if the type is the same, and if the matched states are the same.- Specified by:
equalsFuzzy
in interfaceBlockStateHolder<BlockState>
- Overrides:
equalsFuzzy
in classBlockState
- Parameters:
o
- other block- Returns:
- true if equal
-
toBaseBlock
Description copied from interface:BlockStateHolder
Gets aBaseBlock
from this BlockStateHolder.- Specified by:
toBaseBlock
in interfaceBlockStateHolder<BlockState>
- Overrides:
toBaseBlock
in classBlockState
- Returns:
- The BaseBlock
-
getStates
Description copied from interface:BlockStateHolder
Gets an immutable collection of the states.- Specified by:
getStates
in interfaceBlockStateHolder<BlockState>
- Overrides:
getStates
in classBlockState
- Returns:
- The states
-
getNbtData
Deprecated.Description copied from interface:NbtValued
Get the object's NBT data (tile entity data). The returned tag, if modified in any way, should be sent toNbtValued.setNbtData(CompoundTag)
so that the instance knows of the changes. Making changes without callingNbtValued.setNbtData(CompoundTag)
could have unintended consequences.NbtValued.hasNbtData()
must return true if and only if method does not return null.- Specified by:
getNbtData
in interfaceNbtValued
- Overrides:
getNbtData
in classBlockState
- Returns:
- compound tag, or null
-
builder
Gets an instance of a builder.- Returns:
- The builder
-