mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 02:37:27 +00:00
NpcAPI:
-Added getObjectSize() function for calculating object sizes. RenderCNPCPlayer: -Added gender & age/child compatibility for DBC rendering.
This commit is contained in:
1 parent
96b9fc0a45
commit
496961ccc5
3 files changed
+49
-12
No files matched your search
@@ -11,6 +11,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.EventBus;
|
||||
import jdk.nashorn.internal.ir.debug.ObjectSizeCalculator;
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.entity.EntityLiving;
|
||||
@@ -68,6 +69,10 @@ public class NpcAPI extends AbstractNpcAPI {
|
||||
worldCache.clear();
|
||||
}
|
||||
|
||||
public long sizeOfObject(Object obj) {
|
||||
return ObjectSizeCalculator.getObjectSize(obj);
|
||||
}
|
||||
|
||||
public void stopServer() {
|
||||
CustomNpcs.getServer().initiateShutdown();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user