
org.bukkit.event.entity.ItemSpawnEvent Maven / Gradle / Ivy
package org.bukkit.event.entity;
import org.bukkit.Location;
import org.bukkit.entity.Item;
/**
* Called when an item is spawned into a world
*/
public class ItemSpawnEvent extends EntitySpawnEvent {
public ItemSpawnEvent(final Item spawnee) {
super(spawnee);
}
@Deprecated
public ItemSpawnEvent(final Item spawnee, final Location loc) {
this(spawnee);
}
@Override
public Item getEntity() {
return (Item) entity;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy