Class PortalForcer

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

public class PortalForcer extends Object
Mappings:
Namespace Name
official dhh
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 Ldhh;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 Ldhh;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 Ldhh;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 Ldhh;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 Ldhh;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 Ldhh;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 Ldhh;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 Ldhh;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 Ldhh;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 Ldhh;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 Ldhh;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 Ldhh;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 Ldhh;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 Ldhh;n:Labr;
      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> Ldhh;<init>(Labr;)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<PortalUtil.Rectangle> getPortalRect(BlockPos destPos, boolean destIsNether)
      Mappings:
      Namespace Name Mixin selector
      official a Ldhh;a(Lgg;Z)Ljava/util/Optional;
      intermediary method_30483 Lnet/minecraft/class_1946;method_30483(Lnet/minecraft/class_2338;Z)Ljava/util/Optional;
      named getPortalRect Lnet/minecraft/world/PortalForcer;getPortalRect(Lnet/minecraft/util/math/BlockPos;Z)Ljava/util/Optional;
    • createPortal

      public Optional<PortalUtil.Rectangle> createPortal(BlockPos blockPos, Direction.Axis axis)
      Mappings:
      Namespace Name Mixin selector
      official a Ldhh;a(Lgg;Lgl$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;
    • isValidPortalPos

      private boolean isValidPortalPos(BlockPos pos, BlockPos.Mutable temp, Direction portalDirection, int distanceOrthogonalToPortal)
      Mappings:
      Namespace Name Mixin selector
      official a Ldhh;a(Lgg;Lgg$a;Lgl;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