Lib's Disguises - Disguising the entity
-
Previous - Setting up the FlagWatcher
So you have constructed your disguise as well as the flagwatcher.
Contents
DisguiseAPI.disguiseToAll(Entity entity, Disguise disguise);(top)
This disguises the entity to everyone as the disguise.
DisguiseAPI.isDisguised(Entity entity);(top)
This attempts to fetch a disguise for the entity, then checks if it isn't null and returns the output.
DisguiseAPI.getDisguise(Entity entity);(top)
This returns a disguise for the entity, null if the entity is not disguised.
DisguiseAPI.disguiseNextEntity(Disguise disguise);(top)
This marks down a entity id and disguises the next entity.
It does NOT disguise the next entity to spawn.
It marks down a entity id and disguises that, which means that this is only useful if you plan to use it just before something is spawned in.
DisguiseEvent(top)
This event is fired when something is disguised.
You can use
- getDisguise() - Get the disguise involved
- getEntity() - Get the entity being disguised
- isCancelled() - Returns if this is cancelled
- setCancelled(true) - Sets it to cancelled
UndisguiseEvent(top)
This event is fired when a entity is undisguised.
It is not fired when it is changing disguises
- getDisguise() - Get the disguise involved
- getEntity() - Get the entity being undisguised
- isCancelled() - Returns if this is cancelled
- setCancelled(true) - Sets it to cancelled
- Loading...
- Loading...
XenCarta PRO
© Jason Axelrod from 8WAYRUN.COM