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 CompoundTag
data
private Set<Property<?>>
properties
private BlockState
state
-
Constructor Summary
Constructors Constructor Description BlockStateArgument(BlockState state, Set<Property<?>> properties, CompoundTag data)
-
Method Summary
Modifier and Type Method Description BlockState
getBlockState()
boolean
setBlockState(ServerWorld serverWorld, BlockPos blockPos, int int2)
boolean
test(CachedBlockPosition cachedBlockPosition)
-
Field Details
-
state
-
properties
-
data
-
-
Constructor Details
-
BlockStateArgument
public BlockStateArgument(BlockState state, Set<Property<?>> properties, @Nullable CompoundTag data)
-
-
Method Details
-
getBlockState
-
test
- Specified by:
test
in interfacePredicate<CachedBlockPosition>
-
setBlockState
-