Implemented CraftBlockState

By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
CraftBukkit/Spigot
2011-01-07 16:26:06 +00:00
parent 08343616c6
commit dc8649f340
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);
}
}