Class NetherPortal

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

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

    • MIN_WIDTH

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

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

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

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

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

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

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

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

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

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

      private final BlockPos lowerCorner
      Mappings:
      Namespace Name Mixin selector
      named lowerCorner Lnet/minecraft/world/dimension/NetherPortal;lowerCorner:Lnet/minecraft/util/math/BlockPos;
      intermediary field_11316 Lnet/minecraft/class_2424;field_11316:Lnet/minecraft/class_2338;
      official k Leuv;k:Ljh;
    • height

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

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

    • NetherPortal

      private NetherPortal(Direction.Axis axis, int foundPortalBlocks, Direction negativeDir, BlockPos lowerCorner, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/world/dimension/NetherPortal;<init>(Lnet/minecraft/util/math/Direction$Axis;ILnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;II)V
      intermediary <init> Lnet/minecraft/class_2424;<init>(Lnet/minecraft/class_2350$class_2351;ILnet/minecraft/class_2350;Lnet/minecraft/class_2338;II)V
      official <init> Leuv;<init>(Ljm$a;ILjm;Ljh;II)V
  • Method Details

    • getNewPortal

      public static Optional<NetherPortal> getNewPortal(WorldAccess world, BlockPos pos, Direction.Axis firstCheckedAxis)
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official a Leuv;a(Ldhi;Ljh;Ljm$a;)Ljava/util/Optional;
    • getOrEmpty

      public static Optional<NetherPortal> getOrEmpty(WorldAccess world, BlockPos pos, Predicate<NetherPortal> validator, Direction.Axis firstCheckedAxis)
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official a Leuv;a(Ldhi;Ljh;Ljava/util/function/Predicate;Ljm$a;)Ljava/util/Optional;
    • getOnAxis

      public static NetherPortal getOnAxis(BlockView world, BlockPos pos, Direction.Axis axis)
      Mappings:
      Namespace Name Mixin selector
      named getOnAxis Lnet/minecraft/world/dimension/NetherPortal;getOnAxis(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction$Axis;)Lnet/minecraft/world/dimension/NetherPortal;
      intermediary method_64314 Lnet/minecraft/class_2424;method_64314(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350$class_2351;)Lnet/minecraft/class_2424;
      official a Leuv;a(Ldgm;Ljh;Ljm$a;)Leuv;
    • getLowerCorner

      @Nullable private static @Nullable BlockPos getLowerCorner(BlockView world, Direction direction, BlockPos pow)
      Mappings:
      Namespace Name Mixin selector
      named getLowerCorner Lnet/minecraft/world/dimension/NetherPortal;getLowerCorner(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/BlockPos;
      intermediary method_30492 Lnet/minecraft/class_2424;method_30492(Lnet/minecraft/class_1922;Lnet/minecraft/class_2350;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2338;
      official a Leuv;a(Ldgm;Ljm;Ljh;)Ljh;
    • getValidatedWidth

      private static int getValidatedWidth(BlockView world, BlockPos lowerCorner, Direction negativeDir)
      Mappings:
      Namespace Name Mixin selector
      named getValidatedWidth Lnet/minecraft/world/dimension/NetherPortal;getValidatedWidth(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
      intermediary method_30495 Lnet/minecraft/class_2424;method_30495(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
      official a Leuv;a(Ldgm;Ljh;Ljm;)I
    • getWidth

      private static int getWidth(BlockView world, BlockPos lowerCorner, Direction negativeDir)
      Mappings:
      Namespace Name Mixin selector
      named getWidth Lnet/minecraft/world/dimension/NetherPortal;getWidth(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;)I
      intermediary method_30493 Lnet/minecraft/class_2424;method_30493(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;)I
      official b Leuv;b(Ldgm;Ljh;Ljm;)I
    • getHeight

      private static int getHeight(BlockView world, BlockPos lowerCorner, Direction negativeDir, int width, MutableInt foundPortalBlocks)
      Mappings:
      Namespace Name Mixin selector
      named getHeight Lnet/minecraft/world/dimension/NetherPortal;getHeight(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;ILorg/apache/commons/lang3/mutable/MutableInt;)I
      intermediary method_30496 Lnet/minecraft/class_2424;method_30496(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;ILorg/apache/commons/lang3/mutable/MutableInt;)I
      official a Leuv;a(Ldgm;Ljh;Ljm;ILorg/apache/commons/lang3/mutable/MutableInt;)I
    • isHorizontalFrameValid

      private static boolean isHorizontalFrameValid(BlockView world, BlockPos lowerCorner, Direction direction, BlockPos.Mutable pos, int width, int height)
      Mappings:
      Namespace Name Mixin selector
      named isHorizontalFrameValid Lnet/minecraft/world/dimension/NetherPortal;isHorizontalFrameValid(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos$Mutable;II)Z
      intermediary method_30491 Lnet/minecraft/class_2424;method_30491(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2338$class_2339;II)Z
      official a Leuv;a(Ldgm;Ljh;Ljm;Ljh$a;II)Z
    • getPotentialHeight

      private static int getPotentialHeight(BlockView world, BlockPos lowerCorner, Direction negativeDir, BlockPos.Mutable pos, int width, MutableInt foundPortalBlocks)
      Mappings:
      Namespace Name Mixin selector
      named getPotentialHeight Lnet/minecraft/world/dimension/NetherPortal;getPotentialHeight(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction;Lnet/minecraft/util/math/BlockPos$Mutable;ILorg/apache/commons/lang3/mutable/MutableInt;)I
      intermediary method_30490 Lnet/minecraft/class_2424;method_30490(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2350;Lnet/minecraft/class_2338$class_2339;ILorg/apache/commons/lang3/mutable/MutableInt;)I
      official a Leuv;a(Ldgm;Ljh;Ljm;Ljh$a;ILorg/apache/commons/lang3/mutable/MutableInt;)I
    • validStateInsidePortal

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

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

      public void createPortal(WorldAccess world)
      Mappings:
      Namespace Name Mixin selector
      named createPortal Lnet/minecraft/world/dimension/NetherPortal;createPortal(Lnet/minecraft/world/WorldAccess;)V
      intermediary method_10363 Lnet/minecraft/class_2424;method_10363(Lnet/minecraft/class_1936;)V
      official a Leuv;a(Ldhi;)V
    • wasAlreadyValid

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

      public static Vec3d entityPosInPortal(BlockLocating.Rectangle portalRect, Direction.Axis portalAxis, Vec3d entityPos, EntityDimensions entityDimensions)
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official a Leuv;a(Ll$a;Ljm$a;Lfbx;Lbvm;)Lfbx;
    • findOpenPosition

      public static Vec3d findOpenPosition(Vec3d fallback, ServerWorld world, Entity entity, EntityDimensions dimensions)
      Mappings:
      Namespace Name Mixin selector
      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;
      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;
      official a Leuv;a(Lfbx;Lash;Lbvj;Lbvm;)Lfbx;