mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-27 17:52:57 +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(); }
|
||||
}
|
||||
@@ -729,5 +729,9 @@ public interface ICustomNpc<T extends EntityCreature> extends IEntityLiving<T> {
|
||||
|
||||
public String getOverlayTexture();
|
||||
|
||||
public void setCollisionType(int type);
|
||||
|
||||
public int getCollisionType();
|
||||
|
||||
public void updateClient();
|
||||
}
|
||||
Reference in new issue
Block a user