Java Code Examples for org.bukkit.entity.EntityType#EGG
The following examples show how to use
org.bukkit.entity.EntityType#EGG .
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: EggsScenarioListener.java From UhcCore with GNU General Public License v3.0 | 5 votes |
@EventHandler public void onProjectileHit(ProjectileHitEvent e){ if (e.getEntityType() != EntityType.EGG){ return; } EntityType type = getRandomEntity(); Location loc = e.getEntity().getLocation(); loc.getWorld().spawnEntity(loc, type); }
Example 2
Source File: CraftEgg.java From Kettle with GNU General Public License v3.0 | 4 votes |
public EntityType getType() { return EntityType.EGG; }
Example 3
Source File: CraftEgg.java From Thermos with GNU General Public License v3.0 | 4 votes |
public EntityType getType() { return EntityType.EGG; }