Package net.minecraft.world.entity
Class PortalProcessor
java.lang.Object
net.minecraft.world.entity.PortalProcessor
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
getPortalDestination
(ServerLevel level, Entity entity) int
boolean
boolean
boolean
isSamePortal
(Portal portal) boolean
processPortalTeleportation
(ServerLevel level, Entity entity, boolean canChangeDimensions) void
setAsInsidePortalThisTick
(boolean insidePortalThisTick) void
updateEntryPosition
(BlockPos entryPosition)
-
Field Details
-
portal
-
entryPosition
-
portalTime
private int portalTime -
insidePortalThisTick
private boolean insidePortalThisTick
-
-
Constructor Details
-
PortalProcessor
-
-
Method Details
-
processPortalTeleportation
public boolean processPortalTeleportation(ServerLevel level, Entity entity, boolean canChangeDimensions) -
getPortalDestination
-
getPortalLocalTransition
-
decayTick
private void decayTick() -
hasExpired
public boolean hasExpired() -
getEntryPosition
-
updateEntryPosition
-
getPortalTime
public int getPortalTime() -
isInsidePortalThisTick
public boolean isInsidePortalThisTick() -
setAsInsidePortalThisTick
public void setAsInsidePortalThisTick(boolean insidePortalThisTick) -
isSamePortal
-