Class BlockInput
java.lang.Object
net.minecraft.commands.arguments.blocks.BlockInput
- All Implemented Interfaces:
Predicate<BlockInWorld>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBlockInput
(BlockState p_114666_, Set<Property<?>> p_114667_, CompoundTag p_114668_) -
Method Summary
Modifier and TypeMethodDescriptiongetState()
boolean
place
(ServerLevel p_114671_, BlockPos p_114672_, int p_114673_) boolean
test
(ServerLevel p_173524_, BlockPos p_173525_) boolean
test
(BlockInWorld p_114675_)
-
Field Details
-
state
-
properties
-
tag
-
-
Constructor Details
-
BlockInput
public BlockInput(BlockState p_114666_, Set<Property<?>> p_114667_, @Nullable CompoundTag p_114668_)
-
-
Method Details
-
getState
-
getDefinedProperties
-
test
- Specified by:
test
in interfacePredicate<BlockInWorld>
-
test
-
place
-