summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorfeildmaster <admin@feildmaster.com>2012-07-10 13:32:21 -0500
committerfeildmaster <admin@feildmaster.com>2012-07-11 17:14:07 -0500
commit46125dc6cfad0d6e7c35f0c61fff088ec2c8569b (patch)
tree15aac788e0d67f438531004a86b7c27d277da535 /src/main/java/org
parentcf9544c1d9b561b35dc1c2e0e6240f69707dc34b (diff)
downloadcraftbukkit-46125dc6cfad0d6e7c35f0c61fff088ec2c8569b.tar
craftbukkit-46125dc6cfad0d6e7c35f0c61fff088ec2c8569b.tar.gz
craftbukkit-46125dc6cfad0d6e7c35f0c61fff088ec2c8569b.tar.lz
craftbukkit-46125dc6cfad0d6e7c35f0c61fff088ec2c8569b.tar.xz
craftbukkit-46125dc6cfad0d6e7c35f0c61fff088ec2c8569b.zip
Implement getExpToLevel method. Fixes BUKKIT-1906
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java8
1 files 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 a50df490..18da3121 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();
+ }
}