public class PortalForcer extends Object
Modifier and Type | Field and Description |
---|---|
private Random |
random |
private ServerWorld |
world |
Constructor and Description |
---|
PortalForcer(ServerWorld world) |
Modifier and Type | Method and Description |
---|---|
boolean |
createPortal(Entity entity) |
BlockPattern.TeleportTarget |
getPortal(BlockPos pos,
Vec3d vec3d,
Direction direction,
double x,
double y,
boolean canActivate) |
boolean |
usePortal(Entity entity,
float yawOffset) |
private final ServerWorld world
private final Random random
public PortalForcer(ServerWorld world)