blob: 883be669a5c00a037468173c899743f150ddac09 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
package com.earth2me.essentials.bukkit;
import com.earth2me.essentials.api.server.World;
import com.earth2me.essentials.api.server.ItemStack;
import com.earth2me.essentials.api.server.Location;
import lombok.Delegate;
import lombok.Getter;
import org.bukkit.TreeType;
public class BukkitWorld implements World {
@Delegate
@Getter
private final org.bukkit.World bukkitWorld;
public BukkitWorld(final org.bukkit.World world)
{
this.bukkitWorld = world;
world.getT
}
@Override
public boolean generateTree(Location safeLocation, TreeType tree)
{
return bukkitWorld.generateTree(((BukkitLocation)safeLocation).getBukkitLocation(), tree);
}
@Override
public ItemStack dropItem(Location loc, ItemStack stack)
{
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public Location getSpawnLocation()
{
throw new UnsupportedOperationException("Not supported yet.");
}
@Override
public void dropItemNaturally(Location location, ItemStack overflowStack)
{
throw new UnsupportedOperationException("Not supported yet.");
}
}
|