From b9bb03c09e5c8e174c5ff7f7cfce1d78c02edfd8 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 8 Jan 2011 08:05:04 -0500 Subject: [PATCH] Should be LivingEntity By: durron597 --- .../java/org/bukkit/event/block/BlockInteractEvent.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/event/block/BlockInteractEvent.java b/paper-api/src/main/java/org/bukkit/event/block/BlockInteractEvent.java index 7587e32933..5447724b0e 100644 --- a/paper-api/src/main/java/org/bukkit/event/block/BlockInteractEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/block/BlockInteractEvent.java @@ -1,7 +1,7 @@ package org.bukkit.event.block; import org.bukkit.Block; -import org.bukkit.Entity; +import org.bukkit.LivingEntity; import org.bukkit.Player; import org.bukkit.event.Cancellable; @@ -17,14 +17,14 @@ import org.bukkit.event.Cancellable; */ public class BlockInteractEvent extends BlockEvent implements Cancellable { protected boolean cancel; - protected Entity theEntity; + protected LivingEntity theEntity; /** * @param type The type of this event * @param interactedBlock the block that was interacted with * @param who The entity that interacted with */ - public BlockInteractEvent(Type type, Block interactedBlock, Entity who) { + public BlockInteractEvent(Type type, Block interactedBlock, LivingEntity who) { super(type, interactedBlock); theEntity = who; } @@ -54,7 +54,7 @@ public class BlockInteractEvent extends BlockEvent implements Cancellable { * * @return Entity the entity that triggered this event */ - public Entity getEntity() { + public LivingEntity getEntity() { return theEntity; }