public abstract class Transfiguration extends SpellProjectile
changed, kill, lifeTicks, location, moveEffect, moveEffectData, name, p, player, rightWand, spellUses, usesModifier, vector
Constructor and Description |
---|
Transfiguration(Ollivanders plugin,
org.bukkit.entity.Player player,
Spells name,
java.lang.Double rightWand) |
Modifier and Type | Method and Description |
---|---|
org.bukkit.entity.Entity |
endTransfigure()
Ends the transfiguration.
|
java.util.UUID |
getToID()
Gets the id of the transfigured entity
|
boolean |
hasTransfigured()
Has the transfiguration effect happened yet?
|
void |
setTimeMultiplier(int mult)
Sets the time multiplier for the Transfiguration.
|
void |
simpleTransfigure(org.bukkit.entity.EntityType type,
org.bukkit.inventory.ItemStack stack)
Moves the spell forward until it meets an entity and then performs a simple transfiguration on a non-player entity.
|
org.bukkit.entity.Entity |
transfigureEntity(org.bukkit.entity.Entity entity,
org.bukkit.entity.EntityType toType,
org.bukkit.inventory.ItemStack toStack)
Transfigures entity into new EntityType.
|
getBlock, getBlocksInRadius, getBlocksTouching, getCloseEntities, getItems, getLivingEntities, kill, move, revert
public Transfiguration(Ollivanders plugin, org.bukkit.entity.Player player, Spells name, java.lang.Double rightWand)
public org.bukkit.entity.Entity transfigureEntity(org.bukkit.entity.Entity entity, org.bukkit.entity.EntityType toType, org.bukkit.inventory.ItemStack toStack)
entity
- - Entity to transfiguretoType
- - Type to change entity into. If transfiguring into an item, have this be EntityType.DROPPED_ITEMtoStack
- - If transfiguring into an item, the itemstack to transfigure intopublic org.bukkit.entity.Entity endTransfigure()
public boolean hasTransfigured()
public void simpleTransfigure(org.bukkit.entity.EntityType type, org.bukkit.inventory.ItemStack stack)
type
- - The EntityType to transfigure the non-player entity intostack
- - The itemstack to transfigure into, if the entitytype is Itempublic java.util.UUID getToID()
public void setTimeMultiplier(int mult)
mult
- - Multiplier so that the duration is 8 plus (mult/20) seconds.