Class BlockInput
java.lang.Object
net.minecraft.commands.arguments.blocks.BlockInput
- All Implemented Interfaces:
Predicate<BlockInWorld>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.slf4j.Logger
private final BlockState
private final CompoundTag
-
Constructor Summary
ConstructorsConstructorDescriptionBlockInput
(BlockState pState, Set<Property<?>> pProperties, CompoundTag pTag) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T extends Comparable<T>>
BlockStatecopyProperty
(BlockState pSource, BlockState pTarget, Property<T> pProperty) getState()
private BlockState
boolean
place
(ServerLevel pLevel, BlockPos pPos, int pFlags) boolean
test
(ServerLevel pLevel, BlockPos pPos) boolean
test
(BlockInWorld pBlock)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
state
-
properties
-
tag
-
-
Constructor Details
-
BlockInput
-
-
Method Details
-
getState
-
getDefinedProperties
-
test
- Specified by:
test
in interfacePredicate<BlockInWorld>
-
test
-
place
-
overwriteWithDefinedProperties
-
copyProperty
private static <T extends Comparable<T>> BlockState copyProperty(BlockState pSource, BlockState pTarget, Property<T> pProperty)
-