mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 20:23:53 -07:00
Implemented CraftBlockState
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user