-Added getPlayer() function
-Added getChunkLoadingNPCs function
-Added getCurrentPlayerCount, getMaxPlayers, and kickAllPlayers, isHardcore, getFile(path), and getServerOwner functions
This commit is contained in:
Luis C.M committed 2022-11-06 01:59:34 -05:00
1 parent e9a8f8cebc
commit 3fd962289c
6 files changed
+78 -18

No files matched your search

@@ -11,6 +11,7 @@ import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.eventhandler.EventBus;
import net.minecraft.block.Block;
import net.minecraft.entity.Entity;
import net.minecraft.entity.INpc;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.inventory.Container;
import net.minecraft.inventory.IInventory;
@@ -51,6 +52,18 @@ public abstract class AbstractNpcAPI {
public abstract void stopServer();
public abstract int getCurrentPlayerCount();
public abstract int getMaxPlayers();
public abstract void kickAllPlayers();
public abstract boolean isHardcore();
public abstract File getFile(String path);
public abstract String getServerOwner();
public abstract IFactionHandler getFactions();
public abstract IRecipeHandler getRecipes();
@@ -79,6 +92,10 @@ public abstract class AbstractNpcAPI {
public abstract IEntity<?> getIEntity(Entity var1);
public abstract IPlayer<?> getPlayer(String username);
public abstract INpc[] getChunkLoadingNPCs();
public abstract IEntity<?>[] getLoadedEntities();
public abstract IBlock getIBlock(IWorld world, int x, int y, int z);