add missing block.getData() (oops) and use string localization

This commit is contained in:
sylvessa 2026-03-22 02:37:45 -05:00
parent 0d1e0177e5
commit 54d4ad1ce0
6 changed files with 162 additions and 52 deletions

View file

@ -93,6 +93,15 @@ public class Block
return true;
}
/// <summary>
/// Gets the metadata value for this block.
/// </summary>
/// <returns>Block specific metadata.</returns>
public byte getData()
{
return (byte)NativeBridge.GetTileData(_world.getDimensionId(), _x, _y, _z);
}
/// <summary>
/// Sets the metadata value for this block.
/// </summary>