Java 类net.minecraft.server.PortalTravelAgent 实例源码

项目:CraftBukkit    文件:CraftTravelAgent.java   
public Location findPortal(Location location) {
    PortalTravelAgent pta = ((CraftWorld) location.getWorld()).getHandle().getTravelAgent();
    ChunkCoordinates found = pta.findPortal(location.getX(), location.getY(), location.getZ(), this.getSearchRadius());
    return found != null ? new Location(location.getWorld(), found.x, found.y, found.z, location.getYaw(), location.getPitch()) : null;
}
项目:CraftBukkit    文件:CraftTravelAgent.java   
public boolean createPortal(Location location) {
    PortalTravelAgent pta = ((CraftWorld) location.getWorld()).getHandle().getTravelAgent();
    return pta.createPortal(location.getX(), location.getY(), location.getZ(), this.getCreationRadius());
}
项目:Craftbukkit    文件:CraftTravelAgent.java   
@Override
public Location findPortal(Location location) {
    PortalTravelAgent pta = ((CraftWorld) location.getWorld()).getHandle().getTravelAgent();
    BlockPosition found = pta.findPortal(location.getX(), location.getY(), location.getZ(), this.getSearchRadius());
    return found != null ? new Location(location.getWorld(), found.getX(), found.getY(), found.getZ(), location.getYaw(), location.getPitch()) : null;
}
项目:Craftbukkit    文件:CraftTravelAgent.java   
@Override
public boolean createPortal(Location location) {
    PortalTravelAgent pta = ((CraftWorld) location.getWorld()).getHandle().getTravelAgent();
    return pta.createPortal(location.getX(), location.getY(), location.getZ(), this.getCreationRadius());
}
项目:Almura-Server    文件:CraftTravelAgent.java   
public Location findPortal(Location location) {
    PortalTravelAgent pta = ((CraftWorld) location.getWorld()).getHandle().t(); // Should be getTravelAgent
    ChunkCoordinates found = pta.findPortal(location.getX(), location.getY(), location.getZ(), this.getSearchRadius());
    return found != null ? new Location(location.getWorld(), found.x, found.y, found.z, location.getYaw(), location.getPitch()) : null;
}
项目:Almura-Server    文件:CraftTravelAgent.java   
public boolean createPortal(Location location) {
    PortalTravelAgent pta = ((CraftWorld) location.getWorld()).getHandle().t();
    return pta.createPortal(location.getX(), location.getY(), location.getZ(), this.getCreationRadius());
}
项目:Tweakkit-Server    文件:CraftTravelAgent.java   
public Location findPortal(Location location) {
    PortalTravelAgent pta = ((CraftWorld) location.getWorld()).getHandle().getTravelAgent();
    ChunkCoordinates found = pta.findPortal(location.getX(), location.getY(), location.getZ(), this.getSearchRadius());
    return found != null ? new Location(location.getWorld(), found.x, found.y, found.z, location.getYaw(), location.getPitch()) : null;
}
项目:Tweakkit-Server    文件:CraftTravelAgent.java   
public boolean createPortal(Location location) {
    PortalTravelAgent pta = ((CraftWorld) location.getWorld()).getHandle().getTravelAgent();
    return pta.createPortal(location.getX(), location.getY(), location.getZ(), this.getCreationRadius());
}
项目:SpigotSource    文件:CraftTravelAgent.java   
@Override
public Location findPortal(Location location) {
    PortalTravelAgent pta = ((CraftWorld) location.getWorld()).getHandle().getTravelAgent();
    BlockPosition found = pta.findPortal(location.getX(), location.getY(), location.getZ(), this.getSearchRadius());
    return found != null ? new Location(location.getWorld(), found.getX(), found.getY(), found.getZ(), location.getYaw(), location.getPitch()) : null;
}
项目:SpigotSource    文件:CraftTravelAgent.java   
@Override
public boolean createPortal(Location location) {
    PortalTravelAgent pta = ((CraftWorld) location.getWorld()).getHandle().getTravelAgent();
    return pta.createPortal(location.getX(), location.getY(), location.getZ(), this.getCreationRadius());
}
项目:Craft-city    文件:CraftTravelAgent.java   
public Location findPortal(Location location) {
    PortalTravelAgent pta = ((CraftWorld) location.getWorld()).getHandle().s();
    ChunkCoordinates found = pta.findPortal(location.getX(), location.getY(), location.getZ(), this.getSearchRadius());
    return found != null ? new Location(location.getWorld(), found.x, found.y, found.z, location.getYaw(), location.getPitch()) : null;
}
项目:Craft-city    文件:CraftTravelAgent.java   
public boolean createPortal(Location location) {
    PortalTravelAgent pta = ((CraftWorld) location.getWorld()).getHandle().s();
    return pta.createPortal(location.getX(), location.getY(), location.getZ(), this.getCreationRadius());
}