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
official cyh
intermediary net/minecraft/class_3825
named net/minecraft/structure/rule/RuleTest
  • Field Details

    • field_25012

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

    • RuleTest

      public RuleTest()
  • Method Details

    • test

      public abstract boolean test​(BlockState state, Random random)
      Mappings:
      Namespace Name Mixin selector
      official a Lcyh;a(Lcht;Ljava/util/Random;)Z
      intermediary method_16768 Lnet/minecraft/class_3825;method_16768(Lnet/minecraft/class_2680;Ljava/util/Random;)Z
      named test Lnet/minecraft/structure/rule/RuleTest;test(Lnet/minecraft/block/BlockState;Ljava/util/Random;)Z
    • getType

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