Contents
Class PrefabPasteEvent
java.lang.Object
com.hypixel.hytale.component.system.EcsEvent
com.hypixel.hytale.component.system.CancellableEcsEvent
com.hypixel.hytale.server.core.prefab.event.PrefabPasteEvent
- All Implemented Interfaces:
ICancellableEcsEvent
An event that is fired when a prefab paste starts or ends in a world.
If cancelled, the prefab paste will not occur.
-
Constructor Summary
ConstructorsConstructorDescriptionPrefabPasteEvent(int prefabId, boolean pasteStart) Default Constructor for aPrefabPasteEventinstance. -
Method Summary
Methods inherited from class CancellableEcsEvent
isCancelled, setCancelled
-
Constructor Details
-
PrefabPasteEvent
public PrefabPasteEvent(int prefabId, boolean pasteStart) Default Constructor for aPrefabPasteEventinstance.- Parameters:
prefabId- The ID of the prefab being pasted.pasteStart- Whether the paste is starting or ending.
-
-
Method Details
-
getPrefabId
public int getPrefabId()- Returns:
- The ID of the prefab being pasted.
-
isPasteStart
public boolean isPasteStart()- Returns:
trueif the paste is starting,falseif it is ending.
-