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 pLevel, Entity pEntity) int
boolean
boolean
boolean
isSamePortal
(Portal pPortal) boolean
processPortalTeleportation
(ServerLevel pLevel, Entity pEntity, boolean pCanChangeDimensions) void
setAsInsidePortalThisTick
(boolean pInsidePortalThisTick) void
updateEntryPosition
(BlockPos pEntryPosition)
-
Field Details
-
portal
-
entryPosition
-
portalTime
private int portalTime -
insidePortalThisTick
private boolean insidePortalThisTick
-
-
Constructor Details
-
PortalProcessor
-
-
Method Details
-
processPortalTeleportation
public boolean processPortalTeleportation(ServerLevel pLevel, Entity pEntity, boolean pCanChangeDimensions) -
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 pInsidePortalThisTick) -
isSamePortal
-