Package net.minecraft.command.argument
Class BlockStateArgument
java.lang.Object
net.minecraft.command.argument.BlockStateArgument
- All Implemented Interfaces:
Predicate<CachedBlockPosition>
public class BlockStateArgument extends Object implements Predicate<CachedBlockPosition>
-
Field Summary
Fields Modifier and Type Field Description private NbtCompounddataprivate Set<Property<?>>propertiesprivate BlockStatestate -
Constructor Summary
Constructors Constructor Description BlockStateArgument(BlockState state, Set<Property<?>> properties, NbtCompound data) -
Method Summary
Modifier and Type Method Description BlockStategetBlockState()booleansetBlockState(ServerWorld world, BlockPos pos, int flags)booleantest(CachedBlockPosition cachedBlockPosition)
-
Field Details
-
state
-
properties
-
data
-
-
Constructor Details
-
BlockStateArgument
public BlockStateArgument(BlockState state, Set<Property<?>> properties, @Nullable NbtCompound data)
-
-
Method Details
-
getBlockState
-
test
- Specified by:
testin interfacePredicate<CachedBlockPosition>
-
setBlockState
-