public class Teleporter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Teleporter.PortalPosition |
Modifier and Type | Field and Description |
---|---|
private LongHashMap<Teleporter.PortalPosition> |
destinationCoordinateCache |
private java.util.List<java.lang.Long> |
destinationCoordinateKeys |
private java.util.Random |
random
A private Random() function in Teleporter
|
private WorldServer |
worldServerInstance |
Constructor and Description |
---|
Teleporter(WorldServer worldIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
makePortal(Entity p_85188_1_) |
boolean |
placeInExistingPortal(Entity entityIn,
float rotationYaw) |
void |
placeInPortal(Entity entityIn,
float rotationYaw) |
void |
removeStalePortalLocations(long worldTime)
called periodically to remove out-of-date portal locations from the cache list.
|
private final WorldServer worldServerInstance
private final java.util.Random random
private final LongHashMap<Teleporter.PortalPosition> destinationCoordinateCache
private final java.util.List<java.lang.Long> destinationCoordinateKeys
public Teleporter(WorldServer worldIn)
public void placeInPortal(Entity entityIn, float rotationYaw)
public boolean placeInExistingPortal(Entity entityIn, float rotationYaw)
public boolean makePortal(Entity p_85188_1_)
public void removeStalePortalLocations(long worldTime)