Class NetherPortal

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

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

    • MIN_WIDTH

      private static final int MIN_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lebk;c:I
      intermediary field_31825 Lnet/minecraft/class_2424;field_31825:I
      named MIN_WIDTH Lnet/minecraft/world/dimension/NetherPortal;MIN_WIDTH:I
    • MAX_WIDTH

      public static final int MAX_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lebk;a:I
      intermediary field_31823 Lnet/minecraft/class_2424;field_31823:I
      named MAX_WIDTH Lnet/minecraft/world/dimension/NetherPortal;MAX_WIDTH:I
    • MIN_HEIGHT

      private static final int MIN_HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lebk;d:I
      intermediary field_31826 Lnet/minecraft/class_2424;field_31826:I
      named MIN_HEIGHT Lnet/minecraft/world/dimension/NetherPortal;MIN_HEIGHT:I
    • MAX_HEIGHT

      public static final int MAX_HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lebk;b:I
      intermediary field_31824 Lnet/minecraft/class_2424;field_31824:I
      named MAX_HEIGHT Lnet/minecraft/world/dimension/NetherPortal;MAX_HEIGHT:I
    • IS_VALID_FRAME_BLOCK

      private static final AbstractBlock.ContextPredicate IS_VALID_FRAME_BLOCK
      Mappings:
      Namespace Name Mixin selector
      official e Lebk;e:Ldfi$f;
      intermediary field_25883 Lnet/minecraft/class_2424;field_25883:Lnet/minecraft/class_4970$class_4973;
      named IS_VALID_FRAME_BLOCK Lnet/minecraft/world/dimension/NetherPortal;IS_VALID_FRAME_BLOCK:Lnet/minecraft/block/AbstractBlock$ContextPredicate;
    • FALLBACK_THRESHOLD

      private static final float FALLBACK_THRESHOLD
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lebk;f:F
      intermediary field_41086 Lnet/minecraft/class_2424;field_41086:F
      named FALLBACK_THRESHOLD Lnet/minecraft/world/dimension/NetherPortal;FALLBACK_THRESHOLD:F
    • HEIGHT_STRETCH

      private static final double HEIGHT_STRETCH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Lebk;g:D
      intermediary field_41087 Lnet/minecraft/class_2424;field_41087:D
      named HEIGHT_STRETCH Lnet/minecraft/world/dimension/NetherPortal;HEIGHT_STRETCH:D
    • world

      private final WorldAccess world
      Mappings:
      Namespace Name Mixin selector
      official h Lebk;h:Lcpw;
      intermediary field_11318 Lnet/minecraft/class_2424;field_11318:Lnet/minecraft/class_1936;
      named world Lnet/minecraft/world/dimension/NetherPortal;world:Lnet/minecraft/world/WorldAccess;
    • axis

      private final Direction.Axis axis
      Mappings:
      Namespace Name Mixin selector
      official i Lebk;i:Lha$a;
      intermediary field_11317 Lnet/minecraft/class_2424;field_11317:Lnet/minecraft/class_2350$class_2351;
      named axis Lnet/minecraft/world/dimension/NetherPortal;axis:Lnet/minecraft/util/math/Direction$Axis;
    • negativeDir

      private final Direction negativeDir
      Mappings:
      Namespace Name Mixin selector
      official j Lebk;j:Lha;
      intermediary field_11314 Lnet/minecraft/class_2424;field_11314:Lnet/minecraft/class_2350;
      named negativeDir Lnet/minecraft/world/dimension/NetherPortal;negativeDir:Lnet/minecraft/util/math/Direction;
    • foundPortalBlocks

      private int foundPortalBlocks
      Mappings:
      Namespace Name Mixin selector
      official k Lebk;k:I
      intermediary field_11313 Lnet/minecraft/class_2424;field_11313:I
      named foundPortalBlocks Lnet/minecraft/world/dimension/NetherPortal;foundPortalBlocks:I
    • lowerCorner

      @Nullable private @Nullable BlockPos lowerCorner
      Mappings:
      Namespace Name Mixin selector
      official l Lebk;l:Lgw;
      intermediary field_11316 Lnet/minecraft/class_2424;field_11316:Lnet/minecraft/class_2338;
      named lowerCorner Lnet/minecraft/world/dimension/NetherPortal;lowerCorner:Lnet/minecraft/util/math/BlockPos;
    • height

      private int height
      Mappings:
      Namespace Name Mixin selector
      official m Lebk;m:I
      intermediary field_11312 Lnet/minecraft/class_2424;field_11312:I
      named height Lnet/minecraft/world/dimension/NetherPortal;height:I
    • width

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

    • NetherPortal

      public NetherPortal(WorldAccess world, BlockPos pos, Direction.Axis axis)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lebk;<init>(Lcpw;Lgw;Lha$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/NetherPortal;<init>(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction$Axis;)V
  • Method Details

    • getNewPortal

      public static Optional<NetherPortal> getNewPortal(WorldAccess world, BlockPos pos, Direction.Axis axis)
      Mappings:
      Namespace Name Mixin selector
      official a Lebk;a(Lcpw;Lgw;Lha$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/NetherPortal;getNewPortal(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction$Axis;)Ljava/util/Optional;
    • getOrEmpty

      public static Optional<NetherPortal> getOrEmpty(WorldAccess world, BlockPos pos, Predicate<NetherPortal> validator, Direction.Axis axis)
      Mappings:
      Namespace Name Mixin selector
      official a Lebk;a(Lcpw;Lgw;Ljava/util/function/Predicate;Lha$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/NetherPortal;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 @Nullable BlockPos getLowerCorner(BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lebk;a(Lgw;)Lgw;
      intermediary method_30492 Lnet/minecraft/class_2424;method_30492(Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
      named getLowerCorner Lnet/minecraft/world/dimension/NetherPortal;getLowerCorner(Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;
    • getWidth

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

      private int getWidth(BlockPos pos, Direction direction)
      Mappings:
      Namespace Name Mixin selector
      official a Lebk;a(Lgw;Lha;)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/NetherPortal;getWidth(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
    • getHeight

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

      private boolean isHorizontalFrameValid(BlockPos.Mutable pos, int height)
      Mappings:
      Namespace Name Mixin selector
      official a Lebk;a(Lgw$a;I)Z
      intermediary method_30491 Lnet/minecraft/class_2424;method_30491(Lnet/minecraft/class_2338$class_2339;I)Z
      named isHorizontalFrameValid Lnet/minecraft/world/dimension/NetherPortal;isHorizontalFrameValid(Lnet/minecraft/util/math/BlockPos$Mutable;I)Z
    • getPotentialHeight

      private int getPotentialHeight(BlockPos.Mutable pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lebk;a(Lgw$a;)I
      intermediary method_30490 Lnet/minecraft/class_2424;method_30490(Lnet/minecraft/class_2338$class_2339;)I
      named getPotentialHeight Lnet/minecraft/world/dimension/NetherPortal;getPotentialHeight(Lnet/minecraft/util/math/BlockPos$Mutable;)I
    • validStateInsidePortal

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

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

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

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

      public static Vec3d entityPosInPortal(BlockLocating.Rectangle portalRect, Direction.Axis portalAxis, Vec3d entityPos, EntityDimensions entityDimensions)
      Mappings:
      Namespace Name Mixin selector
      official a Lebk;a(Ll$a;Lha$a;Lehn;Lbir;)Lehn;
      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 entityPosInPortal Lnet/minecraft/world/dimension/NetherPortal;entityPosInPortal(Lnet/minecraft/world/BlockLocating$Rectangle;Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/EntityDimensions;)Lnet/minecraft/util/math/Vec3d;
    • getNetherTeleportTarget

      public static TeleportTarget getNetherTeleportTarget(ServerWorld destination, BlockLocating.Rectangle portalRect, Direction.Axis portalAxis, Vec3d offset, Entity entity, Vec3d velocity, float yaw, float pitch)
      Determines a TeleportTarget based on a specific portal.

      The offset, velocity, and angle are modified based on the portal's axis.

      Mappings:
      Namespace Name Mixin selector
      official a Lebk;a(Lakq;Ll$a;Lha$a;Lehn;Lbiq;Lehn;FF)Lebj;
      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_1297;Lnet/minecraft/class_243;FF)Lnet/minecraft/class_5454;
      named getNetherTeleportTarget Lnet/minecraft/world/dimension/NetherPortal;getNetherTeleportTarget(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/world/BlockLocating$Rectangle;Lnet/minecraft/util/math/Direction$Axis;Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/entity/Entity;Lnet/minecraft/util/math/Vec3d;FF)Lnet/minecraft/world/TeleportTarget;
    • findOpenPosition

      private static Vec3d findOpenPosition(Vec3d fallback, ServerWorld world, Entity entity, EntityDimensions dimensions)
      Mappings:
      Namespace Name Mixin selector
      official a Lebk;a(Lehn;Lakq;Lbiq;Lbir;)Lehn;
      intermediary method_47382 Lnet/minecraft/class_2424;method_47382(Lnet/minecraft/class_243;Lnet/minecraft/class_3218;Lnet/minecraft/class_1297;Lnet/minecraft/class_4048;)Lnet/minecraft/class_243;
      named findOpenPosition Lnet/minecraft/world/dimension/NetherPortal;findOpenPosition(Lnet/minecraft/util/math/Vec3d;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/Entity;Lnet/minecraft/entity/EntityDimensions;)Lnet/minecraft/util/math/Vec3d;