Class PortalForcer

java.lang.Object
net.minecraft.world.PortalForcer

public class PortalForcer extends Object
Mappings:
Namespace Name
official dxx
intermediary net/minecraft/class_1946
named net/minecraft/world/PortalForcer
  • Field Details

    • field_31810

      private static final int field_31810
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Ldxx;a:I
      intermediary field_31810 Lnet/minecraft/class_1946;field_31810:I
      named field_31810 Lnet/minecraft/world/PortalForcer;field_31810:I
    • field_31811

      private static final int field_31811
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Ldxx;b:I
      intermediary field_31811 Lnet/minecraft/class_1946;field_31811:I
      named field_31811 Lnet/minecraft/world/PortalForcer;field_31811:I
    • field_31812

      private static final int field_31812
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Ldxx;c:I
      intermediary field_31812 Lnet/minecraft/class_1946;field_31812:I
      named field_31812 Lnet/minecraft/world/PortalForcer;field_31812:I
    • field_31813

      private static final int field_31813
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Ldxx;d:I
      intermediary field_31813 Lnet/minecraft/class_1946;field_31813:I
      named field_31813 Lnet/minecraft/world/PortalForcer;field_31813:I
    • field_31814

      private static final int field_31814
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Ldxx;e:I
      intermediary field_31814 Lnet/minecraft/class_1946;field_31814:I
      named field_31814 Lnet/minecraft/world/PortalForcer;field_31814:I
    • field_31815

      private static final int field_31815
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Ldxx;f:I
      intermediary field_31815 Lnet/minecraft/class_1946;field_31815:I
      named field_31815 Lnet/minecraft/world/PortalForcer;field_31815:I
    • field_31816

      private static final int field_31816
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Ldxx;g:I
      intermediary field_31816 Lnet/minecraft/class_1946;field_31816:I
      named field_31816 Lnet/minecraft/world/PortalForcer;field_31816:I
    • field_31817

      private static final int field_31817
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Ldxx;h:I
      intermediary field_31817 Lnet/minecraft/class_1946;field_31817:I
      named field_31817 Lnet/minecraft/world/PortalForcer;field_31817:I
    • field_31818

      private static final int field_31818
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official i Ldxx;i:I
      intermediary field_31818 Lnet/minecraft/class_1946;field_31818:I
      named field_31818 Lnet/minecraft/world/PortalForcer;field_31818:I
    • field_31819

      private static final int field_31819
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Ldxx;j:I
      intermediary field_31819 Lnet/minecraft/class_1946;field_31819:I
      named field_31819 Lnet/minecraft/world/PortalForcer;field_31819:I
    • field_31820

      private static final int field_31820
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Ldxx;k:I
      intermediary field_31820 Lnet/minecraft/class_1946;field_31820:I
      named field_31820 Lnet/minecraft/world/PortalForcer;field_31820:I
    • field_31821

      private static final int field_31821
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Ldxx;l:I
      intermediary field_31821 Lnet/minecraft/class_1946;field_31821:I
      named field_31821 Lnet/minecraft/world/PortalForcer;field_31821:I
    • field_31822

      private static final int field_31822
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official m Ldxx;m:I
      intermediary field_31822 Lnet/minecraft/class_1946;field_31822:I
      named field_31822 Lnet/minecraft/world/PortalForcer;field_31822:I
    • world

      private final ServerWorld world
      Mappings:
      Namespace Name Mixin selector
      official n Ldxx;n:Laif;
      intermediary field_9286 Lnet/minecraft/class_1946;field_9286:Lnet/minecraft/class_3218;
      named world Lnet/minecraft/world/PortalForcer;world:Lnet/minecraft/server/world/ServerWorld;
  • Constructor Details

    • PortalForcer

      public PortalForcer(ServerWorld world)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldxx;<init>(Laif;)V
      intermediary <init> Lnet/minecraft/class_1946;<init>(Lnet/minecraft/class_3218;)V
      named <init> Lnet/minecraft/world/PortalForcer;<init>(Lnet/minecraft/server/world/ServerWorld;)V
  • Method Details

    • getPortalRect

      public Optional<BlockLocating.Rectangle> getPortalRect(BlockPos pos, boolean destIsNether, WorldBorder worldBorder)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxx;a(Lgu;ZLddp;)Ljava/util/Optional;
      intermediary method_30483 Lnet/minecraft/class_1946;method_30483(Lnet/minecraft/class_2338;ZLnet/minecraft/class_2784;)Ljava/util/Optional;
      named getPortalRect Lnet/minecraft/world/PortalForcer;getPortalRect(Lnet/minecraft/util/math/BlockPos;ZLnet/minecraft/world/border/WorldBorder;)Ljava/util/Optional;
    • createPortal

      public Optional<BlockLocating.Rectangle> createPortal(BlockPos pos, Direction.Axis axis)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxx;a(Lgu;Lha$a;)Ljava/util/Optional;
      intermediary method_30482 Lnet/minecraft/class_1946;method_30482(Lnet/minecraft/class_2338;Lnet/minecraft/class_2350$class_2351;)Ljava/util/Optional;
      named createPortal Lnet/minecraft/world/PortalForcer;createPortal(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/Direction$Axis;)Ljava/util/Optional;
    • isBlockStateValid

      private boolean isBlockStateValid(BlockPos.Mutable pos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxx;a(Lgu$a;)Z
      intermediary method_45550 Lnet/minecraft/class_1946;method_45550(Lnet/minecraft/class_2338$class_2339;)Z
      named isBlockStateValid Lnet/minecraft/world/PortalForcer;isBlockStateValid(Lnet/minecraft/util/math/BlockPos$Mutable;)Z
    • isValidPortalPos

      private boolean isValidPortalPos(BlockPos pos, BlockPos.Mutable temp, Direction portalDirection, int distanceOrthogonalToPortal)
      Mappings:
      Namespace Name Mixin selector
      official a Ldxx;a(Lgu;Lgu$a;Lha;I)Z
      intermediary method_30481 Lnet/minecraft/class_1946;method_30481(Lnet/minecraft/class_2338;Lnet/minecraft/class_2338$class_2339;Lnet/minecraft/class_2350;I)Z
      named isValidPortalPos Lnet/minecraft/world/PortalForcer;isValidPortalPos(Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos$Mutable;Lnet/minecraft/util/math/Direction;I)Z