mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-21 20:23:51 +00:00
add missing block.getData() (oops) and use string localization
This commit is contained in:
parent
0d1e0177e5
commit
54d4ad1ce0
6 changed files with 162 additions and 52 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue