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 CompoundTagdataprivate Set<Property<?>>propertiesprivate BlockStatestate -
Constructor Summary
Constructors Constructor Description BlockStateArgument(BlockState state, Set<Property<?>> properties, CompoundTag data) -
Method Summary
Modifier and Type Method Description BlockStategetBlockState()booleansetBlockState(ServerWorld serverWorld, BlockPos blockPos, int int2)booleantest(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:
testin interfacePredicate<CachedBlockPosition>
-
setBlockState
-