24package com.dreamfirestudios.dreamcore.DreamPersistentData;
27import org.bukkit.Bukkit;
28import org.bukkit.NamespacedKey;
29import org.bukkit.block.Block;
30import org.bukkit.event.Event;
31import org.bukkit.event.HandlerList;
32import org.jetbrains.annotations.NotNull;
51 private static final HandlerList handlers =
new HandlerList();
54 private final Block block;
57 private final NamespacedKey namespacedKey;
60 private final Object value;
70 this.namespacedKey = namespacedKey;
72 Bukkit.getPluginManager().callEvent(
this);
79 @Override
public @NotNull HandlerList
getHandlers() {
return handlers; }
Event fired when a persistent data entry is added to a Block.
HandlerList getHandlers()
PersistentBlockAddedEvent(Block block, NamespacedKey namespacedKey, Object value)
Initializes a new event and calls it through the plugin manager.
static HandlerList getHandlerList()
Static handler list accessor.