Class LinearPosRuleTest

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

public class LinearPosRuleTest
extends PosRuleTest
Mappings:
Namespace Name
official cxy
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 Lcxy;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 Lcxy;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 Lcxy;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 Lcxy;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 Lcxy;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> Lcxy;<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 blockPos3, Random random)
      Specified by:
      test in class PosRuleTest
      Mappings:
      Namespace Name Mixin selector
      official a Lcyb;a(Lfx;Lfx;Lfx;Ljava/util/Random;)Z
      intermediary method_26406 Lnet/minecraft/class_4995;method_26406(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;Ljava/util/Random;)Z
      named test Lnet/minecraft/structure/rule/PosRuleTest;test(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)Z
    • getType

      protected PosRuleTestType<?> getType()
      Specified by:
      getType in class PosRuleTest
      Mappings:
      Namespace Name Mixin selector
      official a Lcyb;a()Lcyc;
      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;