Package net.minecraft.command.arguments
Class BlockPredicateArgument.BlockPredicate
- java.lang.Object
-
- net.minecraft.command.arguments.BlockPredicateArgument.BlockPredicate
-
- All Implemented Interfaces:
java.util.function.Predicate<CachedBlockInfo>
- Enclosing class:
- BlockPredicateArgument
static class BlockPredicateArgument.BlockPredicate extends java.lang.Object implements java.util.function.Predicate<CachedBlockInfo>
-
-
Field Summary
Fields Modifier and Type Field Description private CompoundNBT
nbt
private java.util.Set<Property<?>>
properties
private BlockState
state
-
Constructor Summary
Constructors Constructor Description BlockPredicate(BlockState p_i48210_1_, java.util.Set<Property<?>> p_i48210_2_, CompoundNBT p_i48210_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
test(CachedBlockInfo p_test_1_)
-
-
-
Field Detail
-
state
private final BlockState state
-
properties
private final java.util.Set<Property<?>> properties
-
nbt
@Nullable private final CompoundNBT nbt
-
-
Constructor Detail
-
BlockPredicate
public BlockPredicate(BlockState p_i48210_1_, java.util.Set<Property<?>> p_i48210_2_, @Nullable CompoundNBT p_i48210_3_)
-
-
Method Detail
-
test
public boolean test(CachedBlockInfo p_test_1_)
- Specified by:
test
in interfacejava.util.function.Predicate<CachedBlockInfo>
-
-