Skip to content

EntityLoad ​

com.jsmacrosce.jsmacros.client.api.event.impl.world.EventEntityLoad

Not cancellable

Fires after an entity is added to the client world.

Constructors ​

new EventEntityLoad ​

new EventEntityLoad(Entity e)#
Wraps the supplied entity for this event. A null entity causes construction to fail with NullPointerException.

Parameters:

  • e: the raw entity to wrap; cannot be null

Fields ​

entity ​

entity: EntityHelper<?>read-only#
Helper for the entity added to the client world.

Methods ​

toString ​

toString(): String#
Returns a diagnostic string containing the event name and the current value of entity's toString().
Returns: the string in the form %s:{"entity": %s}, with the event name and entity-helper string substituted for the placeholders