Package com.ranull.graves.integration
Class MultiPaper
java.lang.Object
com.ranull.graves.integration.MultiPaper
Integration class for handling communication with the MultiLib plugin.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMultiPaper
(Graves plugin) Constructs a new MultiPaper instance and registers listeners for MultiLib events. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the local server from MultiLib.void
notifyBlockCreation
(BlockData blockData) Notifies other servers about a block creation event.void
notifyEntityCreation
(EntityData entityData) Notifies other servers about an entity creation event.void
notifyGraveCreation
(Grave grave) Notifies other servers about a grave creation event.void
notifyGraveRemoval
(Grave grave) Notifies other servers about a grave removal event.void
notifyHologramCreation
(HologramData hologramData) Notifies other servers about a hologram creation event.private void
Registers listeners for various MultiLib events.
-
Field Details
-
plugin
-
-
Constructor Details
-
MultiPaper
Constructs a new MultiPaper instance and registers listeners for MultiLib events.- Parameters:
plugin
- The main Graves plugin instance.
-
-
Method Details
-
getLocalServerName
Gets the name of the local server from MultiLib.- Returns:
- The local server name.
-
notifyGraveCreation
Notifies other servers about a grave creation event.- Parameters:
grave
- The grave that was created.
-
notifyGraveRemoval
Notifies other servers about a grave removal event.- Parameters:
grave
- The grave that was removed.
-
notifyBlockCreation
Notifies other servers about a block creation event.- Parameters:
blockData
- The block data for the created block.
-
notifyHologramCreation
Notifies other servers about a hologram creation event.- Parameters:
hologramData
- The hologram data for the created hologram.
-
notifyEntityCreation
Notifies other servers about an entity creation event.- Parameters:
entityData
- The entity data for the created entity.
-
registerListeners
private void registerListeners()Registers listeners for various MultiLib events.
-