BuilderToolsPlugin.PrefabPasteEventSystem
Package: com.hypixel.hytale.builtin.buildertools
public static class PrefabPasteEventSystem extends WorldEventSystem<EntityStore, PrefabPasteEvent>An EntityStore world event system that handles PrefabPasteEvent to manage the plugin’s prefab paste tracking maps. Registered during BuilderToolsPlugin setup.
Constructor
Section titled “Constructor”protected PrefabPasteEventSystem(@Nonnull BuilderToolsPlugin plugin)Creates the system with a reference to the plugin for accessing the paste tracking maps.
Event Handling
Section titled “Event Handling”public void handle(@Nonnull Store<EntityStore> store, @Nonnull CommandBuffer<EntityStore> commandBuffer, @Nonnull PrefabPasteEvent event)On paste start (event.isPasteStart() returns true), creates new ConcurrentHashMap entries in the plugin’s pastedPrefabPathUUIDMap and pastedPrefabPathNameToUUIDMap keyed by the prefab ID. On paste end, removes the entries. These maps track which entity UUIDs correspond to which prefab paths during active paste operations.
Related Types
Section titled “Related Types”- BuilderToolsPlugin — enclosing class; owns the paste tracking maps
- BuilderToolsPlugin.BuilderState — paste operations originate from the builder state
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.