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 voidgetPortalDestination(ServerLevel pLevel, Entity pEntity) intbooleanbooleanbooleanisSamePortal(Portal pPortal) booleanprocessPortalTeleportation(ServerLevel pLevel, Entity pEntity, boolean pCanChangeDimensions) voidsetAsInsidePortalThisTick(boolean pInsidePortalThisTick) voidupdateEntryPosition(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
-