Class PortalProcessor

java.lang.Object
net.minecraft.world.entity.PortalProcessor

public class PortalProcessor extends Object
  • Field Details

    • portal

      private Portal portal
    • entryPosition

      private BlockPos entryPosition
    • portalTime

      private int portalTime
    • insidePortalThisTick

      private boolean insidePortalThisTick
  • Constructor Details

    • PortalProcessor

      public PortalProcessor(Portal p_343292_, BlockPos p_343694_)
  • Method Details

    • processPortalTeleportation

      public boolean processPortalTeleportation(ServerLevel p_342539_, Entity p_345125_, boolean p_342731_)
    • getPortalDestination

      @Nullable public DimensionTransition getPortalDestination(ServerLevel p_344411_, Entity p_342799_)
    • getPortalLocalTransition

      public Portal.Transition getPortalLocalTransition()
    • decayTick

      private void decayTick()
    • hasExpired

      public boolean hasExpired()
    • getEntryPosition

      public BlockPos getEntryPosition()
    • updateEntryPosition

      public void updateEntryPosition(BlockPos p_344295_)
    • getPortalTime

      public int getPortalTime()
    • isInsidePortalThisTick

      public boolean isInsidePortalThisTick()
    • setAsInsidePortalThisTick

      public void setAsInsidePortalThisTick(boolean p_342092_)
    • isSamePortal

      public boolean isSamePortal(Portal p_344740_)