Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/main/java/org/spongepowered/api/block/BlockState.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,14 @@ default BlockState mirror(final Supplier<? extends Mirror> mirror) {
return this.mirror(mirror.get());
}

/**
* Gets a string representation of this block state, including the block type and the properties.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add a further note to not confuse this with an Object's traditional toString and to use the toString to the specific implementation's descriptor of this Object.

Something like that.

* Do not confuse with {@link #toString} which is implementation specific.
*
* @return A string representation of this block state.
*/
String asString();

/**
* An {@link org.spongepowered.api.data.DataHolderBuilder.Immutable} for a {@link BlockState}. Just like the
* {@link org.spongepowered.api.data.DataHolderBuilder.Immutable}, the {@link Value}s passed in to
Expand Down