mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-07 00:48:28 +01:00
Add more information about block tag<->nbt
This commit is contained in:
parent
4ef056dfed
commit
778dda08d6
@ -65,6 +65,8 @@ public interface Block extends ProtocolObject, TagReadable, BlockConstants {
|
||||
|
||||
/**
|
||||
* Creates a new block with a tag value modified.
|
||||
* <p>
|
||||
* Equivalent to getting {@link #nbt()}, applying the tag and calling {@link #withNbt(NBTCompound)}.
|
||||
*
|
||||
* @param tag the tag to modify
|
||||
* @param value the tag value, null to remove
|
||||
@ -89,6 +91,8 @@ public interface Block extends ProtocolObject, TagReadable, BlockConstants {
|
||||
|
||||
/**
|
||||
* Returns an unmodifiable view to the block nbt.
|
||||
* <p>
|
||||
* Be aware that {@link Tag tags} directly affect the block nbt.
|
||||
*
|
||||
* @return the block nbt, null if not present
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user