Class RuleTest

java.lang.Object
net.minecraft.structure.rule.RuleTest
Direct Known Subclasses:
AlwaysTrueRuleTest, BlockMatchRuleTest, BlockStateMatchRuleTest, RandomBlockMatchRuleTest, RandomBlockStateMatchRuleTest, TagMatchRuleTest

public abstract class RuleTest extends Object
Rule tests are used in structure generation to check if a block state matches some condition.
Mappings:
Namespace Name
named net/minecraft/structure/rule/RuleTest
intermediary net/minecraft/class_3825
official erj
  • Field Details Link icon

    • TYPE_CODEC Link icon

      public static final com.mojang.serialization.Codec<RuleTest> TYPE_CODEC
      Mappings:
      Namespace Name Mixin selector
      named TYPE_CODEC Lnet/minecraft/structure/rule/RuleTest;TYPE_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_25012 Lnet/minecraft/class_3825;field_25012:Lcom/mojang/serialization/Codec;
      official c Lerj;c:Lcom/mojang/serialization/Codec;
  • Constructor Details Link icon

    • RuleTest Link icon

      public RuleTest()
  • Method Details Link icon

    • test Link icon

      public abstract boolean test(BlockState state, Random random)
      Mappings:
      Namespace Name Mixin selector
      named test Lnet/minecraft/structure/rule/RuleTest;test(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/random/Random;)Z
      intermediary method_16768 Lnet/minecraft/class_3825;method_16768(Lnet/minecraft/class_2680;Lnet/minecraft/class_5819;)Z
      official a Lerj;a(Ldwy;Lazh;)Z
    • getType Link icon

      protected abstract RuleTestType<?> getType()
      Mappings:
      Namespace Name Mixin selector
      named getType Lnet/minecraft/structure/rule/RuleTest;getType()Lnet/minecraft/structure/rule/RuleTestType;
      intermediary method_16766 Lnet/minecraft/class_3825;method_16766()Lnet/minecraft/class_3827;
      official a Lerj;a()Lerk;