Пример #1
0
 public static MinecartMember getAt(Block railblock, boolean checkmoving) {
   if (railblock == null) return null;
   return getAt(
       WorldUtil.getNative(railblock.getWorld()),
       BlockUtil.getCoordinates(railblock),
       checkmoving);
 }
Пример #2
0
 public static MinecartMember spawn(Location at, int type) {
   MinecartMember mm =
       new MinecartMember(
           WorldUtil.getNative(at.getWorld()), at.getX(), at.getY(), at.getZ(), type);
   mm.yaw = at.getYaw();
   mm.pitch = at.getPitch();
   mm.world.addEntity(mm);
   return mm;
 }
Пример #3
0
 public static MinecartMember getAt(
     org.bukkit.World world, ChunkCoordinates coord, boolean checkmoving) {
   return getAt(WorldUtil.getNative(world), coord, checkmoving);
 }