Contents
Class PrefabPlaceEntityEvent
java.lang.Object
com.hypixel.hytale.component.system.EcsEvent
com.hypixel.hytale.component.system.CancellableEcsEvent
com.hypixel.hytale.server.core.prefab.event.PrefabPlaceEntityEvent
- All Implemented Interfaces:
ICancellableEcsEvent
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 Summary
ConstructorsConstructorDescriptionPrefabPlaceEntityEvent(int prefabId, Holder<EntityStore> holder) Default Constructor for aPrefabPlaceEntityEventinstance. -
Method Summary
Methods inherited from class CancellableEcsEvent
isCancelled, setCancelled
-
Constructor Details
-
PrefabPlaceEntityEvent
Default Constructor for aPrefabPlaceEntityEventinstance.- Parameters:
prefabId- The ID of the prefab being placed.
-
-
Method Details
-
getPrefabId
public int getPrefabId()- Returns:
- the ID of the prefab being placed.
-
getHolder
- Returns:
- the holder that contains the entities data.
-