public class Teleporter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Teleporter.PortalPosition |
Modifier and Type | Field and Description |
---|---|
protected it.unimi.dsi.fastutil.longs.Long2ObjectMap<Teleporter.PortalPosition> |
destinationCoordinateCache |
protected java.util.Random |
random |
protected WorldServer |
world |
Constructor and Description |
---|
Teleporter(WorldServer worldIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
makePortal(Entity entityIn) |
boolean |
placeInExistingPortal(Entity entityIn,
float rotationYaw) |
void |
placeInPortal(Entity entityIn,
float rotationYaw) |
void |
removeStalePortalLocations(long worldTime) |
protected final WorldServer world
protected final java.util.Random random
protected final it.unimi.dsi.fastutil.longs.Long2ObjectMap<Teleporter.PortalPosition> destinationCoordinateCache
public Teleporter(WorldServer worldIn)
public void placeInPortal(Entity entityIn, float rotationYaw)
public boolean placeInExistingPortal(Entity entityIn, float rotationYaw)
public boolean makePortal(Entity entityIn)
public void removeStalePortalLocations(long worldTime)