Contents
Class PointPasteHandler
java.lang.Object
com.hypixel.hytale.component.system.EventSystem<PrefabPlaceEntityEvent>
com.hypixel.hytale.component.system.WorldEventSystem<EntityStore, PrefabPlaceEntityEvent>
com.hypixel.hytale.builtin.points.prefab.PointPasteHandler
- All Implemented Interfaces:
ISystem<EntityStore>
Converts
Point transport entities from a prefab paste into live point registrations,
then cancels the placement so the transport entity never persists. Malformed entries are
skipped rather than crashing the world thread.-
Field Summary
Fields inherited from interface ISystem
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionPointPasteHandler(ResourceType<EntityStore, PointManager> managerResourceType, ComponentType<EntityStore, Point> pointComponentType) -
Method Summary
Modifier and TypeMethodDescriptionvoidhandle(Store<EntityStore> store, CommandBuffer<EntityStore> commandBuffer, PrefabPlaceEntityEvent event) An overrideable method called to handle an event.Methods inherited from class WorldEventSystem
handleInternalMethods inherited from class EventSystem
getEventTypeMethods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ISystem
getDependencies, getGroup, onSystemRegistered, onSystemUnregistered
-
Constructor Details
-
PointPasteHandler
public PointPasteHandler(@Nonnull ResourceType<EntityStore, PointManager> managerResourceType, @Nonnull ComponentType<EntityStore, Point> pointComponentType)
-
-
Method Details
-
handle
public void handle(@Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull PrefabPlaceEntityEvent event) Description copied from class:WorldEventSystemAn overrideable method called to handle an event.- Specified by:
handlein classWorldEventSystem<EntityStore, PrefabPlaceEntityEvent>- Parameters:
store- The ECS store.commandBuffer- The command buffer for queuing ECS commands.event- The event to be handled.
-