public class Teleporter
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<ColumnPos,net.minecraft.world.Teleporter.PortalPosition> |
destinationCoordinateCache |
protected java.util.Random |
random |
protected ServerWorld |
world |
Constructor and Description |
---|
Teleporter(ServerWorld worldIn) |
Modifier and Type | Method and Description |
---|---|
boolean |
func_222268_a(Entity p_222268_1_,
float p_222268_2_) |
BlockPattern.PortalInfo |
func_222272_a(BlockPos p_222272_1_,
Vec3d p_222272_2_,
Direction p_222272_3_,
double p_222272_4_,
double p_222272_6_,
boolean p_222272_8_) |
boolean |
makePortal(Entity entityIn) |
void |
tick(long worldTime) |
protected final ServerWorld world
protected final java.util.Random random
protected final java.util.Map<ColumnPos,net.minecraft.world.Teleporter.PortalPosition> destinationCoordinateCache
public Teleporter(ServerWorld worldIn)
public boolean func_222268_a(Entity p_222268_1_, float p_222268_2_)
@Nullable public BlockPattern.PortalInfo func_222272_a(BlockPos p_222272_1_, Vec3d p_222272_2_, Direction p_222272_3_, double p_222272_4_, double p_222272_6_, boolean p_222272_8_)
public boolean makePortal(Entity entityIn)
public void tick(long worldTime)