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.Loggerprivate final BlockStateprivate final @Nullable CompoundTag -
Constructor Summary
ConstructorsConstructorDescriptionBlockInput(BlockState state, Set<Property<?>> properties, @Nullable CompoundTag tag) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <T extends Comparable<T>>
BlockStatecopyProperty(BlockState target, BlockState source, Property<T> property) getState()private BlockStatebooleanplace(ServerLevel level, BlockPos pos, int update) booleantest(ServerLevel level, BlockPos pos) booleantest(BlockInWorld blockInWorld)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
state
-
properties
-
tag
-
-
Constructor Details
-
BlockInput
-
-
Method Details
-
getState
-
getDefinedProperties
-
test
- Specified by:
testin interfacePredicate<BlockInWorld>
-
test
-
place
-
overwriteWithDefinedProperties
-
copyProperty
private static <T extends Comparable<T>> BlockState copyProperty(BlockState target, BlockState source, Property<T> property)
-