Implemented CraftBlockState

This commit is contained in:
Dinnerbone
2011-01-07 16:26:06 +00:00
parent 1edd1fa0ca
commit 08a62e37ac
2 changed files with 152 additions and 0 deletions

View File

@@ -2,6 +2,8 @@
package org.bukkit.craftbukkit;
import org.bukkit.*;
import org.bukkit.block.BlockState;
import org.bukkit.craftbukkit.block.CraftBlockState;
public class CraftBlock implements Block {
private final CraftWorld world;
@@ -249,4 +251,8 @@ public class CraftBlock implements Block {
return BlockFace.Self;
}
}
public BlockState getState() {
return new CraftBlockState(world, x, y, z, type, data);
}
}