Class PrefabPlaceEntityEvent

All Implemented Interfaces:
ICancellableEcsEvent

public class PrefabPlaceEntityEvent extends CancellableEcsEvent
An event that is fired when entities are being placed as part of a prefab placement.

If cancelled, the entity placement will not occur.

  • Constructor Details

    • PrefabPlaceEntityEvent

      public PrefabPlaceEntityEvent(int prefabId, @Nonnull Holder<EntityStore> holder)
      Default Constructor for a PrefabPlaceEntityEvent instance.
      Parameters:
      prefabId - The ID of the prefab being placed.
  • Method Details

    • getPrefabId

      public int getPrefabId()
      Returns:
      the ID of the prefab being placed.
    • getHolder

      @Nonnull public Holder<EntityStore> getHolder()
      Returns:
      the holder that contains the entities data.