Package com.ranull.graves.integration
Class MultiPaper
java.lang.Object
com.ranull.graves.integration.MultiPaper
Integration class for handling communication with the MultiLib plugin.
-
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.voidnotifyBlockCreation(BlockData blockData) Notifies other servers about a block creation event.voidnotifyEntityCreation(EntityData entityData) Notifies other servers about an entity creation event.voidnotifyGraveCreation(Grave grave) Notifies other servers about a grave creation event.voidnotifyGraveRemoval(Grave grave) Notifies other servers about a grave removal event.voidnotifyHologramCreation(HologramData hologramData) Notifies other servers about a hologram creation event.
-
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.
-