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_350931_, BlockPos p_350699_)
  • Method Details

    • processPortalTeleportation

      public boolean processPortalTeleportation(ServerLevel p_350279_, Entity p_350646_, boolean p_350822_)
    • getPortalDestination

      @Nullable public DimensionTransition getPortalDestination(ServerLevel p_350593_, Entity p_350987_)
    • getPortalLocalTransition

      public Portal.Transition getPortalLocalTransition()
    • decayTick

      private void decayTick()
    • hasExpired

      public boolean hasExpired()
    • getEntryPosition

      public BlockPos getEntryPosition()
    • updateEntryPosition

      public void updateEntryPosition(BlockPos p_350726_)
    • getPortalTime

      public int getPortalTime()
    • isInsidePortalThisTick

      public boolean isInsidePortalThisTick()
    • setAsInsidePortalThisTick

      public void setAsInsidePortalThisTick(boolean p_350796_)
    • isSamePortal

      public boolean isSamePortal(Portal p_350902_)