From 46125dc6cfad0d6e7c35f0c61fff088ec2c8569b Mon Sep 17 00:00:00 2001 From: feildmaster Date: Tue, 10 Jul 2012 13:32:21 -0500 Subject: [PATCH] Implement getExpToLevel method. Fixes BUKKIT-1906 --- .../org/bukkit/craftbukkit/entity/CraftHumanEntity.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java index a50df490b5..18da3121cd 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java @@ -3,11 +3,8 @@ package org.bukkit.craftbukkit.entity; import java.util.Set; import net.minecraft.server.Container; -import net.minecraft.server.ContainerBrewingStand; -import net.minecraft.server.ContainerWorkbench; import net.minecraft.server.EntityHuman; import net.minecraft.server.EntityPlayer; -import net.minecraft.server.ICrafting; import net.minecraft.server.Packet100OpenWindow; import net.minecraft.server.Packet101CloseWindow; import net.minecraft.server.TileEntityBrewingStand; @@ -18,7 +15,6 @@ import org.bukkit.GameMode; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.entity.HumanEntity; -import org.bukkit.event.inventory.InventoryOpenEvent; import org.bukkit.event.inventory.InventoryType; import org.bukkit.inventory.Inventory; import org.bukkit.inventory.InventoryView; @@ -311,4 +307,8 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity { public boolean setWindowProperty(InventoryView.Property prop, int value) { return false; } + + public int getExpToLevel() { + return getHandle().getExpToLevel(); + } }