org.bukkit.EntityEffect Java Examples
The following examples show how to use
org.bukkit.EntityEffect.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BleedFeature.java From VoxelGamesLibv2 with MIT License | 5 votes |
@GameEvent public void onEntityDamage(EntityDamageEvent e) { if (e.getEntityType() == EntityType.PLAYER) { e.getEntity().getWorld().playEffect(e.getEntity().getLocation(), Effect.STEP_SOUND, Material.REDSTONE_WIRE); e.getEntity().playEffect(EntityEffect.HURT); } }
Example #2
Source File: CraftEntity.java From Kettle with GNU General Public License v3.0 | 5 votes |
@Override public void playEffect(EntityEffect type) { Preconditions.checkArgument(type != null, "type"); if (type.getApplicable().isInstance(this)) { this.getHandle().world.setEntityState(getHandle(), type.getData()); } }
Example #3
Source File: VisualEffect.java From Skript with GNU General Public License v3.0 | 4 votes |
private Type(final EntityEffect effect) { this.effect = effect; this.name = null; }
Example #4
Source File: CraftEntity.java From Thermos with GNU General Public License v3.0 | 4 votes |
public void playEffect(EntityEffect type) { this.getHandle().worldObj.setEntityState(getHandle(), type.getData()); }
Example #5
Source File: VisualEffect.java From Skript with GNU General Public License v3.0 | 2 votes |
/** * Entity effects are always played on entities. * @return If this is an entity effect. */ public boolean isEntityEffect() { return type.effect instanceof EntityEffect; }
Example #6
Source File: CraftItemHolder.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #7
Source File: CraftItemHolder.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #8
Source File: CraftNameable.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #9
Source File: CraftItemHolder.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #10
Source File: CraftNameable.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #11
Source File: CraftItemHolder.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #12
Source File: CraftNameable.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #13
Source File: CraftNameable.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #14
Source File: CraftNameable.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #15
Source File: CraftItemHolder.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #16
Source File: CraftItemHolder.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #17
Source File: CraftNameable.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #18
Source File: CraftItemHolder.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #19
Source File: CraftItemHolder.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #20
Source File: CraftNameable.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #21
Source File: CraftItemHolder.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #22
Source File: CraftNameable.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #23
Source File: CraftItemHolder.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #24
Source File: CraftNameable.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #25
Source File: CraftNameable.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #26
Source File: CraftItemHolder.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #27
Source File: CraftNameable.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #28
Source File: CraftItemHolder.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #29
Source File: CraftNameable.java From Holograms with MIT License | 2 votes |
@Override public void playEffect(EntityEffect type) { }
Example #30
Source File: CraftNMSSlime.java From HolographicDisplays with GNU General Public License v3.0 | votes |
@Override public void playEffect(EntityEffect effect) { }