Package net.minecraft.command.arguments
Class BlockStateInput
- java.lang.Object
-
- net.minecraft.command.arguments.BlockStateInput
-
- All Implemented Interfaces:
java.util.function.Predicate<CachedBlockInfo>
public class BlockStateInput extends java.lang.Object implements java.util.function.Predicate<CachedBlockInfo>
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.Set<Property<?>>
properties
private BlockState
state
private CompoundNBT
tag
-
Constructor Summary
Constructors Constructor Description BlockStateInput(BlockState p_i47967_1_, java.util.Set<Property<?>> p_i47967_2_, CompoundNBT p_i47967_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockState
getState()
boolean
place(ServerWorld p_197230_1_, BlockPos p_197230_2_, int p_197230_3_)
boolean
test(CachedBlockInfo p_test_1_)
-
-
-
Field Detail
-
state
private final BlockState state
-
properties
private final java.util.Set<Property<?>> properties
-
tag
@Nullable private final CompoundNBT tag
-
-
Constructor Detail
-
BlockStateInput
public BlockStateInput(BlockState p_i47967_1_, java.util.Set<Property<?>> p_i47967_2_, @Nullable CompoundNBT p_i47967_3_)
-
-
Method Detail
-
getState
public BlockState getState()
-
test
public boolean test(CachedBlockInfo p_test_1_)
- Specified by:
test
in interfacejava.util.function.Predicate<CachedBlockInfo>
-
place
public boolean place(ServerWorld p_197230_1_, BlockPos p_197230_2_, int p_197230_3_)
-
-