13
0
geforkt von Mirrors/Paper

Implement getExpToLevel method. Fixes BUKKIT-1906

Dieser Commit ist enthalten in:
feildmaster 2012-07-10 13:32:21 -05:00
Ursprung cf9544c1d9
Commit 46125dc6cf

Datei anzeigen

@ -3,11 +3,8 @@ package org.bukkit.craftbukkit.entity;
import java.util.Set; import java.util.Set;
import net.minecraft.server.Container; import net.minecraft.server.Container;
import net.minecraft.server.ContainerBrewingStand;
import net.minecraft.server.ContainerWorkbench;
import net.minecraft.server.EntityHuman; import net.minecraft.server.EntityHuman;
import net.minecraft.server.EntityPlayer; import net.minecraft.server.EntityPlayer;
import net.minecraft.server.ICrafting;
import net.minecraft.server.Packet100OpenWindow; import net.minecraft.server.Packet100OpenWindow;
import net.minecraft.server.Packet101CloseWindow; import net.minecraft.server.Packet101CloseWindow;
import net.minecraft.server.TileEntityBrewingStand; import net.minecraft.server.TileEntityBrewingStand;
@ -18,7 +15,6 @@ import org.bukkit.GameMode;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.entity.HumanEntity; import org.bukkit.entity.HumanEntity;
import org.bukkit.event.inventory.InventoryOpenEvent;
import org.bukkit.event.inventory.InventoryType; import org.bukkit.event.inventory.InventoryType;
import org.bukkit.inventory.Inventory; import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.InventoryView; import org.bukkit.inventory.InventoryView;
@ -311,4 +307,8 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity {
public boolean setWindowProperty(InventoryView.Property prop, int value) { public boolean setWindowProperty(InventoryView.Property prop, int value) {
return false; return false;
} }
public int getExpToLevel() {
return getHandle().getExpToLevel();
}
} }