Class AreaHelper

java.lang.Object
net.minecraft.world.dimension.AreaHelper

public class AreaHelper
extends Object
Mappings:
Namespace Name
official ddc
intermediary net/minecraft/class_2424
named net/minecraft/world/dimension/AreaHelper
  • Field Details

    • IS_VALID_FRAME_BLOCK

      private static final AbstractBlock.ContextPredicate IS_VALID_FRAME_BLOCK
      Mappings:
      Namespace Name Mixin selector
      official a Lddc;a:Lchs$e;
      intermediary field_25883 Lnet/minecraft/class_2424;field_25883:Lnet/minecraft/class_4970$class_4973;
      named IS_VALID_FRAME_BLOCK Lnet/minecraft/world/dimension/AreaHelper;IS_VALID_FRAME_BLOCK:Lnet/minecraft/block/AbstractBlock$ContextPredicate;
    • world

      private final WorldAccess world
      Mappings:
      Namespace Name Mixin selector
      official b Lddc;b:Lbtw;
      intermediary field_11318 Lnet/minecraft/class_2424;field_11318:Lnet/minecraft/class_1936;
      named world Lnet/minecraft/world/dimension/AreaHelper;world:Lnet/minecraft/world/WorldAccess;
    • axis

      private final Direction.Axis axis
      Mappings:
      Namespace Name Mixin selector
      official c Lddc;c:Lgc$a;
      intermediary field_11317 Lnet/minecraft/class_2424;field_11317:Lnet/minecraft/class_2350$class_2351;
      named axis Lnet/minecraft/world/dimension/AreaHelper;axis:Lnet/minecraft/util/math/Direction$Axis;
    • negativeDir

      private final Direction negativeDir
      Mappings:
      Namespace Name Mixin selector
      official d Lddc;d:Lgc;
      intermediary field_11314 Lnet/minecraft/class_2424;field_11314:Lnet/minecraft/class_2350;
      named negativeDir Lnet/minecraft/world/dimension/AreaHelper;negativeDir:Lnet/minecraft/util/math/Direction;
    • foundPortalBlocks

      private int foundPortalBlocks
      Mappings:
      Namespace Name Mixin selector
      official e Lddc;e:I
      intermediary field_11313 Lnet/minecraft/class_2424;field_11313:I
      named foundPortalBlocks Lnet/minecraft/world/dimension/AreaHelper;foundPortalBlocks:I
    • lowerCorner

      @Nullable private BlockPos lowerCorner
      Mappings:
      Namespace Name Mixin selector
      official f Lddc;f:Lfx;
      intermediary field_11316 Lnet/minecraft/class_2424;field_11316:Lnet/minecraft/class_2338;
      named lowerCorner Lnet/minecraft/world/dimension/AreaHelper;lowerCorner:Lnet/minecraft/util/math/BlockPos;
    • height

      private int height
      Mappings:
      Namespace Name Mixin selector
      official g Lddc;g:I
      intermediary field_11312 Lnet/minecraft/class_2424;field_11312:I
      named height Lnet/minecraft/world/dimension/AreaHelper;height:I
    • width

      private final int width
      Mappings:
      Namespace Name Mixin selector
      official h Lddc;h:I
      intermediary field_11311 Lnet/minecraft/class_2424;field_11311:I
      named width Lnet/minecraft/world/dimension/AreaHelper;width:I
  • Constructor Details

    • AreaHelper

      public AreaHelper​(WorldAccess world, BlockPos pos, Direction.Axis axis)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lddc;<init>(Lbtw;Lfx;Lgc$a;)V
      intermediary <init> Lnet/minecraft/class_2424;<init>(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350$class_2351;)V
      named <init> Lnet/minecraft/world/dimension/AreaHelper;<init>(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction$Axis;)V
  • Method Details

    • getNewPortal

      public static Optional<AreaHelper> getNewPortal​(WorldAccess world, BlockPos pos, Direction.Axis axis)
      Mappings:
      Namespace Name Mixin selector
      official a Lddc;a(Lbtw;Lfx;Lgc$a;)Ljava/util/Optional;
      intermediary method_30485 Lnet/minecraft/class_2424;method_30485(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350$class_2351;)Ljava/util/Optional;
      named getNewPortal Lnet/minecraft/world/dimension/AreaHelper;getNewPortal(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction$Axis;)Ljava/util/Optional;
    • getOrEmpty

      public static Optional<AreaHelper> getOrEmpty​(WorldAccess world, BlockPos pos, Predicate<AreaHelper> predicate, Direction.Axis axis)
      Mappings:
      Namespace Name Mixin selector
      official a Lddc;a(Lbtw;Lfx;Ljava/util/function/Predicate;Lgc$a;)Ljava/util/Optional;
      intermediary method_30486 Lnet/minecraft/class_2424;method_30486(Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Ljava/util/function/Predicate;Lnet/minecraft/class_2350$class_2351;)Ljava/util/Optional;
      named getOrEmpty Lnet/minecraft/world/dimension/AreaHelper;getOrEmpty(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Ljava/util/function/Predicate;Lnet/minecraft/util/math/Direction$Axis;)Ljava/util/Optional;
    • getLowerCorner

      @Nullable private BlockPos getLowerCorner​(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lddc;a(Lfx;)Lfx;
      intermediary method_30492 Lnet/minecraft/class_2424;method_30492(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
      named getLowerCorner Lnet/minecraft/world/dimension/AreaHelper;getLowerCorner(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;
    • getWidth

      private int getWidth()
      Mappings:
      Namespace Name Mixin selector
      official d Lddc;d()I
      intermediary method_30495 Lnet/minecraft/class_2424;method_30495()I
      named getWidth Lnet/minecraft/world/dimension/AreaHelper;getWidth()I
    • getWidth

      private int getWidth​(BlockPos pos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lddc;a(Lfx;Lgc;)I
      intermediary method_30493 Lnet/minecraft/class_2424;method_30493(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
      named getWidth Lnet/minecraft/world/dimension/AreaHelper;getWidth(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
    • getHeight

      private int getHeight()
      Mappings:
      Namespace Name Mixin selector
      official e Lddc;e()I
      intermediary method_30496 Lnet/minecraft/class_2424;method_30496()I
      named getHeight Lnet/minecraft/world/dimension/AreaHelper;getHeight()I
    • method_30491

      private boolean method_30491​(BlockPos.Mutable mutable, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lddc;a(Lfx$a;I)Z
      intermediary method_30491 Lnet/minecraft/class_2424;method_30491(Lnet/minecraft/class_2338$class_2339;I)Z
      named method_30491 Lnet/minecraft/world/dimension/AreaHelper;method_30491(Lnet/minecraft/util/math/BlockPos$Mutable;I)Z
    • method_30490

      private int method_30490​(BlockPos.Mutable mutable)
      Mappings:
      Namespace Name Mixin selector
      official a Lddc;a(Lfx$a;)I
      intermediary method_30490 Lnet/minecraft/class_2424;method_30490(Lnet/minecraft/class_2338$class_2339;)I
      named method_30490 Lnet/minecraft/world/dimension/AreaHelper;method_30490(Lnet/minecraft/util/math/BlockPos$Mutable;)I
    • validStateInsidePortal

      private static boolean validStateInsidePortal​(BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lddc;a(Lcht;)Z
      intermediary method_10359 Lnet/minecraft/class_2424;method_10359(Lnet/minecraft/class_2680;)Z
      named validStateInsidePortal Lnet/minecraft/world/dimension/AreaHelper;validStateInsidePortal(Lnet/minecraft/block/BlockState;)Z
    • isValid

      public boolean isValid()
      Mappings:
      Namespace Name Mixin selector
      official a Lddc;a()Z
      intermediary method_10360 Lnet/minecraft/class_2424;method_10360()Z
      named isValid Lnet/minecraft/world/dimension/AreaHelper;isValid()Z
    • createPortal

      public void createPortal()
      Mappings:
      Namespace Name Mixin selector
      official b Lddc;b()V
      intermediary method_10363 Lnet/minecraft/class_2424;method_10363()V
      named createPortal Lnet/minecraft/world/dimension/AreaHelper;createPortal()V
    • wasAlreadyValid

      public boolean wasAlreadyValid()
      Mappings:
      Namespace Name Mixin selector
      official c Lddc;c()Z
      intermediary method_10362 Lnet/minecraft/class_2424;method_10362()Z
      named wasAlreadyValid Lnet/minecraft/world/dimension/AreaHelper;wasAlreadyValid()Z
    • method_30494

      public static Vec3d method_30494​(class_5459.class_5460 class_5460, Direction.Axis axis, Vec3d vec3d, EntityDimensions entityDimensions)
      Mappings:
      Namespace Name Mixin selector
      official a Lddc;a(Li$a;Lgc$a;Ldiu;Laqw;)Ldiu;
      intermediary method_30494 Lnet/minecraft/class_2424;method_30494(Lnet/minecraft/class_5459$class_5460;Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_243;Lnet/minecraft/class_4048;)Lnet/minecraft/class_243;
      named method_30494 Lnet/minecraft/world/dimension/AreaHelper;method_30494(Lnet/minecraft/class_5459$class_5460;Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/EntityDimensions;)Lnet/minecraft/util/math/Vec3d;
    • method_30484

      public static TeleportTarget method_30484​(ServerWorld serverWorld, class_5459.class_5460 class_5460, Direction.Axis axis, Vec3d vec3d, EntityDimensions entityDimensions, Vec3d vec3d2, float float2, float float3)
      Mappings:
      Namespace Name Mixin selector
      official a Lddc;a(Laav;Li$a;Lgc$a;Ldiu;Laqw;Ldiu;FF)Lddb;
      intermediary method_30484 Lnet/minecraft/class_2424;method_30484(Lnet/minecraft/class_3218;Lnet/minecraft/class_5459$class_5460;Lnet/minecraft/class_2350$class_2351;Lnet/minecraft/class_243;Lnet/minecraft/class_4048;Lnet/minecraft/class_243;FF)Lnet/minecraft/class_5454;
      named method_30484 Lnet/minecraft/world/dimension/AreaHelper;method_30484(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/class_5459$class_5460;Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/EntityDimensions;Lnet/minecraft/util/math/Vec3d;FF)Lnet/minecraft/world/TeleportTarget;