Skip to content

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.

protected PrefabPasteEventSystem(@Nonnull BuilderToolsPlugin plugin)

Creates the system with a reference to the plugin for accessing the paste tracking maps.

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.

Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.