fix: complete WaterBlock IBlock implementation and BlockIds list
This commit is contained in:
@@ -0,0 +1,7 @@
|
|||||||
|
Air = 0
|
||||||
|
Stone = 1
|
||||||
|
Dirt = 2
|
||||||
|
Grass = 3
|
||||||
|
Sand = 4
|
||||||
|
Snow = 5
|
||||||
|
Water = 6
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
namespace VoxelEngine.World.Blocks;
|
namespace VoxelEngine.World.Blocks;
|
||||||
|
|
||||||
public class WaterBlock
|
public class WaterBlock : IBlock
|
||||||
{
|
{
|
||||||
|
public ushort Id => 6;
|
||||||
|
public string Name => "Water";
|
||||||
|
public bool IsOpaque => true;
|
||||||
|
public bool IsSolid => false;
|
||||||
|
public TileCoord GetTextureTile(BlockFace face) => new(3, 3);
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user