Class AxisAlignedLinearPosRuleTest

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

public class AxisAlignedLinearPosRuleTest extends PosRuleTest
Mappings:
Namespace Name
named net/minecraft/structure/rule/AxisAlignedLinearPosRuleTest
intermediary net/minecraft/class_4992
official erj
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<AxisAlignedLinearPosRuleTest> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/structure/rule/AxisAlignedLinearPosRuleTest;CODEC:Lcom/mojang/serialization/MapCodec;
      intermediary field_24995 Lnet/minecraft/class_4992;field_24995:Lcom/mojang/serialization/MapCodec;
      official a Lerj;a:Lcom/mojang/serialization/MapCodec;
    • minChance

      private final float minChance
      Mappings:
      Namespace Name Mixin selector
      named minChance Lnet/minecraft/structure/rule/AxisAlignedLinearPosRuleTest;minChance:F
      intermediary field_23334 Lnet/minecraft/class_4992;field_23334:F
      official b Lerj;b:F
    • maxChance

      private final float maxChance
      Mappings:
      Namespace Name Mixin selector
      named maxChance Lnet/minecraft/structure/rule/AxisAlignedLinearPosRuleTest;maxChance:F
      intermediary field_23335 Lnet/minecraft/class_4992;field_23335:F
      official d Lerj;d:F
    • minDistance

      private final int minDistance
      Mappings:
      Namespace Name Mixin selector
      named minDistance Lnet/minecraft/structure/rule/AxisAlignedLinearPosRuleTest;minDistance:I
      intermediary field_23336 Lnet/minecraft/class_4992;field_23336:I
      official e Lerj;e:I
    • maxDistance

      private final int maxDistance
      Mappings:
      Namespace Name Mixin selector
      named maxDistance Lnet/minecraft/structure/rule/AxisAlignedLinearPosRuleTest;maxDistance:I
      intermediary field_23337 Lnet/minecraft/class_4992;field_23337:I
      official f Lerj;f:I
    • axis

      private final Direction.Axis axis
      Mappings:
      Namespace Name Mixin selector
      named axis Lnet/minecraft/structure/rule/AxisAlignedLinearPosRuleTest;axis:Lnet/minecraft/util/math/Direction$Axis;
      intermediary field_23338 Lnet/minecraft/class_4992;field_23338:Lnet/minecraft/class_2350$class_2351;
      official g Lerj;g:Ljm$a;
  • Constructor Details

    • AxisAlignedLinearPosRuleTest

      public AxisAlignedLinearPosRuleTest(float minChance, float maxChance, int minDistance, int maxDistance, Direction.Axis axis)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/structure/rule/AxisAlignedLinearPosRuleTest;<init>(FFIILnet/minecraft/util/math/Direction$Axis;)V
      intermediary <init> Lnet/minecraft/class_4992;<init>(FFIILnet/minecraft/class_2350$class_2351;)V
      official <init> Lerj;<init>(FFIILjm$a;)V
  • Method Details

    • test

      public boolean test(BlockPos originalPos, BlockPos currentPos, BlockPos pivot, Random random)
      Specified by:
      test in class PosRuleTest
      Mappings:
      Namespace Name Mixin selector
      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
      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
      official a Lery;a(Ljh;Ljh;Ljh;Lbam;)Z
    • getType

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