#994: Add methods to convert between an entity and a string
By: Jishuna <joshl5324@gmail.com>
This commit is contained in:
@ -726,6 +726,17 @@ public interface Entity extends Metadatable, CommandSender, Nameable, Persistent
|
||||
*/
|
||||
boolean isInWorld();
|
||||
|
||||
/**
|
||||
* Get this entity as an NBT string.
|
||||
* <p>
|
||||
* This string should not be relied upon as a serializable value.
|
||||
*
|
||||
* @return the NBT string or null if one cannot be made
|
||||
*/
|
||||
@Nullable
|
||||
@ApiStatus.Experimental
|
||||
String getAsString();
|
||||
|
||||
/**
|
||||
* Crates an {@link EntitySnapshot} representing the current state of this entity.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user