Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Implement getExpToLevel method. Fixes BUKKIT-1906

  • Loading branch information...
commit 1909670c689709bee7eed51a2e8834e15fd52fd3 1 parent ef49ff9
authored July 10, 2012
8  src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java
@@ -3,11 +3,8 @@
3 3
 import java.util.Set;
4 4
 
5 5
 import net.minecraft.server.Container;
6  
-import net.minecraft.server.ContainerBrewingStand;
7  
-import net.minecraft.server.ContainerWorkbench;
8 6
 import net.minecraft.server.EntityHuman;
9 7
 import net.minecraft.server.EntityPlayer;
10  
-import net.minecraft.server.ICrafting;
11 8
 import net.minecraft.server.Packet100OpenWindow;
12 9
 import net.minecraft.server.Packet101CloseWindow;
13 10
 import net.minecraft.server.TileEntityBrewingStand;
@@ -18,7 +15,6 @@
18 15
 import org.bukkit.Location;
19 16
 import org.bukkit.Material;
20 17
 import org.bukkit.entity.HumanEntity;
21  
-import org.bukkit.event.inventory.InventoryOpenEvent;
22 18
 import org.bukkit.event.inventory.InventoryType;
23 19
 import org.bukkit.inventory.Inventory;
24 20
 import org.bukkit.inventory.InventoryView;
@@ -311,4 +307,8 @@ public boolean isBlocking() {
311 307
     public boolean setWindowProperty(InventoryView.Property prop, int value) {
312 308
         return false;
313 309
     }
  310
+
  311
+    public int getExpToLevel() {
  312
+        return getHandle().getExpToLevel();
  313
+    }
314 314
 }

0 notes on commit 1909670

Please sign in to comment.
Something went wrong with that request. Please try again.