SPIGOT-4966: Provide access to Entity in PortalCreateEvent

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2019-05-21 12:07:56 +10:00
parent b2c53e8c68
commit 5c4a9d5f13
2 changed files with 23 additions and 0 deletions

View File

@@ -6,11 +6,15 @@ import org.bukkit.block.BlockState;
import org.bukkit.entity.LivingEntity;
import org.bukkit.event.Cancellable;
import org.bukkit.event.HandlerList;
import org.bukkit.event.world.PortalCreateEvent;
import org.jetbrains.annotations.NotNull;
/**
* Thrown when a Living Entity creates a portal in a world.
*
* @deprecated Use {@link PortalCreateEvent}
*/
@Deprecated
public class EntityCreatePortalEvent extends EntityEvent implements Cancellable {
private static final HandlerList handlers = new HandlerList();
private final List<BlockState> blocks;