24package com.dreamfirestudios.dreamcore.DreamFakeBlock;
27import org.bukkit.Bukkit;
28import org.bukkit.Material;
29import org.bukkit.event.Event;
30import org.bukkit.event.HandlerList;
31import org.jetbrains.annotations.NotNull;
52 private static final HandlerList handlers =
new HandlerList();
55 private final Material newMaterial;
63 this.fakeBlock = fakeBlock;
64 this.newMaterial = newMaterial;
65 Bukkit.getPluginManager().callEvent(
this);
72 @Override
public @NotNull HandlerList
getHandlers() {
return handlers; }
Represents a single fake block at a given location for one or more observers.
Fired when a DreamFakeBlock's material is updated and pushed to all observers.
static HandlerList getHandlerList()
The static handler list required by Bukkit.
HandlerList getHandlers()
The handler list instance.
FakeBlockUpdatedEvent(DreamFakeBlock fakeBlock, Material newMaterial)
Constructs and immediately dispatches the event.