Class RuleEntry
- java.lang.Object
-
- net.minecraft.world.gen.feature.template.RuleEntry
-
public class RuleEntry extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static com.mojang.serialization.Codec<RuleEntry>
CODEC
private RuleTest
inputPredicate
private RuleTest
locPredicate
private BlockState
outputState
private CompoundNBT
outputTag
private PosRuleTest
posPredicate
-
Constructor Summary
Constructors Constructor Description RuleEntry(RuleTest p_i51326_1_, RuleTest p_i51326_2_, BlockState p_i51326_3_)
RuleEntry(RuleTest p_i232117_1_, RuleTest p_i232117_2_, PosRuleTest p_i232117_3_, BlockState p_i232117_4_)
RuleEntry(RuleTest p_i232118_1_, RuleTest p_i232118_2_, PosRuleTest p_i232118_3_, BlockState p_i232118_4_, java.util.Optional<CompoundNBT> p_i232118_5_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BlockState
getOutputState()
CompoundNBT
getOutputTag()
boolean
test(BlockState p_237110_1_, BlockState p_237110_2_, BlockPos p_237110_3_, BlockPos p_237110_4_, BlockPos p_237110_5_, java.util.Random p_237110_6_)
-
-
-
Field Detail
-
CODEC
public static final com.mojang.serialization.Codec<RuleEntry> CODEC
-
inputPredicate
private final RuleTest inputPredicate
-
locPredicate
private final RuleTest locPredicate
-
posPredicate
private final PosRuleTest posPredicate
-
outputState
private final BlockState outputState
-
outputTag
@Nullable private final CompoundNBT outputTag
-
-
Constructor Detail
-
RuleEntry
public RuleEntry(RuleTest p_i51326_1_, RuleTest p_i51326_2_, BlockState p_i51326_3_)
-
RuleEntry
public RuleEntry(RuleTest p_i232117_1_, RuleTest p_i232117_2_, PosRuleTest p_i232117_3_, BlockState p_i232117_4_)
-
RuleEntry
public RuleEntry(RuleTest p_i232118_1_, RuleTest p_i232118_2_, PosRuleTest p_i232118_3_, BlockState p_i232118_4_, java.util.Optional<CompoundNBT> p_i232118_5_)
-
-
Method Detail
-
test
public boolean test(BlockState p_237110_1_, BlockState p_237110_2_, BlockPos p_237110_3_, BlockPos p_237110_4_, BlockPos p_237110_5_, java.util.Random p_237110_6_)
-
getOutputState
public BlockState getOutputState()
-
getOutputTag
@Nullable public CompoundNBT getOutputTag()
-
-