public Location getCompassTarget() { return new Location( BukkitServer.instance().getWorld(getHandle().worldObj.getWorldInfo().getDimension()), getHandle().getHomePosition().posX, getHandle().getHomePosition().posY, getHandle().getHomePosition().posZ); }
@Override public void tickStart(EnumSet<TickType> type, Object... tickData) { if (!ForgeEventHandler.ready) { tickOffset++; return; } B4VScheduler b4v = (B4VScheduler) BukkitServer.instance().getScheduler(); if (b4v == null) { System.out.println("WARNING: BukkitForge is ready, but scheduler is not set!"); tickOffset++; return; } // the supposed ticks will always be tickOffset behind the actual number of ticks b4v.mainThreadHeartbeat(MinecraftServer.getServer().getTickCounter() - tickOffset); }
public boolean isSleepingIgnored() { return BukkitServer.instance().isFauxSleeping(this.getName()); }