# EntityLoad

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

**Cancellable:** No. Calling `event.cancel()` throws `UnsupportedOperationException`.

Fires after an entity is added to the client world.

## Constructors

### new EventEntityLoad {#com.jsmacrosce.jsmacros.client.api.event.impl.world.EventEntityLoad_constructor-Entity-}

```js
new EventEntityLoad(Entity e)
```

Wraps the supplied entity for this event. A `null` entity causes
 construction to fail with [NullPointerException](https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/lang/NullPointerException.html).

**Parameters:**
- `e`: the raw entity to wrap; cannot be `null`

## Fields

### entity {#com.jsmacrosce.jsmacros.client.api.event.impl.world.EventEntityLoad_entity}

```js
entity: EntityHelper<?>
```

Helper for the entity added to the client world.

## Methods

### toString {#com.jsmacrosce.jsmacros.client.api.event.impl.world.EventEntityLoad_toString-}

```js
toString(): String
```

Returns a diagnostic string containing the event name and the current
 value of [entity](#com.jsmacrosce.jsmacros.client.api.event.impl.world.EventEntityLoad_entity)'s `toString()`.

**Returns:** the string in the form `%s:{"entity": %s}`, with the event
         name and entity-helper string substituted for the placeholders
