Class LinearPosRuleTest

java.lang.Object
net.minecraft.structure.rule.PosRuleTest
net.minecraft.structure.rule.LinearPosRuleTest

public class LinearPosRuleTest extends PosRuleTest
Mappings:
Namespace Name
official dnf
intermediary net/minecraft/class_4993
named net/minecraft/structure/rule/LinearPosRuleTest
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<LinearPosRuleTest> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldnf;a:Lcom/mojang/serialization/Codec;
      intermediary field_25004 Lnet/minecraft/class_4993;field_25004:Lcom/mojang/serialization/Codec;
      named CODEC Lnet/minecraft/structure/rule/LinearPosRuleTest;CODEC:Lcom/mojang/serialization/Codec;
    • minChance

      private final float minChance
      Mappings:
      Namespace Name Mixin selector
      official b Ldnf;b:F
      intermediary field_23339 Lnet/minecraft/class_4993;field_23339:F
      named minChance Lnet/minecraft/structure/rule/LinearPosRuleTest;minChance:F
    • maxChance

      private final float maxChance
      Mappings:
      Namespace Name Mixin selector
      official d Ldnf;d:F
      intermediary field_23340 Lnet/minecraft/class_4993;field_23340:F
      named maxChance Lnet/minecraft/structure/rule/LinearPosRuleTest;maxChance:F
    • minDistance

      private final int minDistance
      Mappings:
      Namespace Name Mixin selector
      official e Ldnf;e:I
      intermediary field_23341 Lnet/minecraft/class_4993;field_23341:I
      named minDistance Lnet/minecraft/structure/rule/LinearPosRuleTest;minDistance:I
    • maxDistance

      private final int maxDistance
      Mappings:
      Namespace Name Mixin selector
      official f Ldnf;f:I
      intermediary field_23342 Lnet/minecraft/class_4993;field_23342:I
      named maxDistance Lnet/minecraft/structure/rule/LinearPosRuleTest;maxDistance:I
  • Constructor Details

    • LinearPosRuleTest

      public LinearPosRuleTest(float minChance, float maxChance, int minDistance, int maxDistance)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldnf;<init>(FFII)V
      intermediary <init> Lnet/minecraft/class_4993;<init>(FFII)V
      named <init> Lnet/minecraft/structure/rule/LinearPosRuleTest;<init>(FFII)V
  • Method Details

    • test

      public boolean test(BlockPos blockPos, BlockPos blockPos2, BlockPos pivot, Random random)
      Specified by:
      test in class PosRuleTest
      Mappings:
      Namespace Name Mixin selector
      official a Ldni;a(Lgt;Lgt;Lgt;Lalu;)Z
      intermediary method_26406 Lnet/minecraft/class_4995;method_26406(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Lnet/minecraft/class_5819;)Z
      named test Lnet/minecraft/structure/rule/PosRuleTest;test(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/random/Random;)Z
    • getType

      protected PosRuleTestType<?> getType()
      Specified by:
      getType in class PosRuleTest
      Mappings:
      Namespace Name Mixin selector
      official a Ldni;a()Ldnj;
      intermediary method_26404 Lnet/minecraft/class_4995;method_26404()Lnet/minecraft/class_4996;
      named getType Lnet/minecraft/structure/rule/PosRuleTest;getType()Lnet/minecraft/structure/rule/PosRuleTestType;