Class RandomBlockMatchRuleTest

java.lang.Object
net.minecraft.structure.rule.RuleTest
net.minecraft.structure.rule.RandomBlockMatchRuleTest

public class RandomBlockMatchRuleTest extends RuleTest
Mappings:
Namespace Name
named net/minecraft/structure/rule/RandomBlockMatchRuleTest
intermediary net/minecraft/class_3824
official esc
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<RandomBlockMatchRuleTest> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/structure/rule/RandomBlockMatchRuleTest;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_25009 Lnet/minecraft/class_3824;field_25009:Lcom/mojang/serialization/MapCodec;
      official a Lesc;a:Lcom/mojang/serialization/MapCodec;
    • block

      private final Block block
      Mappings:
      Namespace Name Mixin selector
      named block Lnet/minecraft/structure/rule/RandomBlockMatchRuleTest;block:Lnet/minecraft/block/Block;
      intermediary field_16880 Lnet/minecraft/class_3824;field_16880:Lnet/minecraft/class_2248;
      official b Lesc;b:Ldkl;
    • probability

      private final float probability
      Mappings:
      Namespace Name Mixin selector
      named probability Lnet/minecraft/structure/rule/RandomBlockMatchRuleTest;probability:F
      intermediary field_16879 Lnet/minecraft/class_3824;field_16879:F
      official d Lesc;d:F
  • Constructor Details

    • RandomBlockMatchRuleTest

      public RandomBlockMatchRuleTest(Block block, float probability)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/structure/rule/RandomBlockMatchRuleTest;<init>(Lnet/minecraft/block/Block;F)V
      intermediary <init> Lnet/minecraft/class_3824;<init>(Lnet/minecraft/class_2248;F)V
      official <init> Lesc;<init>(Ldkl;F)V
  • Method Details

    • test

      public boolean test(BlockState state, Random random)
      Specified by:
      test in class RuleTest
      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 Lesf;a(Ldxu;Lbam;)Z
    • getType

      protected RuleTestType<?> getType()
      Specified by:
      getType in class RuleTest
      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 Lesf;a()Lesg;