mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 10:44:46 +00:00
ScriptEntity:
-Added setInvisible, setSneaking, setSprinting, and getUniqueID() functions. ScriptLivingBase: -Added getLookVec() function ScriptPlayer: -Added stopUsingItem(), clearItemInUse(), playSound(name,volume,pitch), mountEntity(entity), dropOneItem(shouldDropStack), canHarvestBlock(block), interactWith(entity) functions
This commit is contained in:
1 parent
8db16459df
commit
d41b3b7a7e
3 files changed
+50
-4
No files matched your search
@@ -627,6 +627,22 @@ public class ScriptEntity<T extends Entity> implements IEntity {
|
||||
entity.hurtResistantTime = ticks;
|
||||
};
|
||||
|
||||
public void setInvisible(boolean invisible){
|
||||
entity.setInvisible(invisible);
|
||||
}
|
||||
|
||||
public void setSneaking(boolean sneaking){
|
||||
entity.setSneaking(sneaking);
|
||||
}
|
||||
|
||||
public void setSprinting(boolean sprinting){
|
||||
entity.setSprinting(sprinting);
|
||||
}
|
||||
|
||||
public String getUniqueID(){
|
||||
return entity.getUniqueID().toString();
|
||||
}
|
||||
|
||||
public boolean hasCollided() {
|
||||
return entity.isCollided;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user