mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Added collision options for CNPCs.
This commit is contained in:
1 parent
4f38edc147
commit
007660f16f
5 files changed
+88
-6
No files matched your search
@@ -1105,5 +1105,12 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
|
||||
return npc.display.glowTexture;
|
||||
}
|
||||
|
||||
public void updateClient() { this.npc.updateClient(); };
|
||||
public void setCollisionType(int type){
|
||||
npc.display.collidesWith = type;
|
||||
}
|
||||
public int getCollisionType(){
|
||||
return npc.display.collidesWith;
|
||||
}
|
||||
|
||||
public void updateClient() { this.npc.updateClient(); }
|
||||
}
|
||||
Reference in new issue
Block a user