本文整理汇总了Java中net.minecraft.server.BlockPosition.getZ方法的典型用法代码示例。如果您正苦于以下问题:Java BlockPosition.getZ方法的具体用法?Java BlockPosition.getZ怎么用?Java BlockPosition.getZ使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.server.BlockPosition
的用法示例。
在下文中一共展示了BlockPosition.getZ方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: findPortal
import net.minecraft.server.BlockPosition; //导入方法依赖的package包/类
@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;
}
示例2: getBeamTarget
import net.minecraft.server.BlockPosition; //导入方法依赖的package包/类
@Override
public Location getBeamTarget() {
BlockPosition pos = getHandle().getBeamTarget();
return pos == null ? null : new Location(getWorld(), pos.getX(), pos.getY(), pos.getZ());
}
示例3: getExitLocation
import net.minecraft.server.BlockPosition; //导入方法依赖的package包/类
@Override
public Location getExitLocation() {
BlockPosition pos = gateway.exitPortal;
return pos == null ? null : new Location(world, pos.getX(), pos.getY(), pos.getZ());
}