Class MultiPaper

java.lang.Object
com.ranull.graves.integration.MultiPaper

public final class MultiPaper extends Object
Integration class for handling communication with the MultiLib plugin.
  • Field Details

    • plugin

      private final Graves plugin
  • Constructor Details

    • MultiPaper

      public MultiPaper(Graves plugin)
      Constructs a new MultiPaper instance and registers listeners for MultiLib events.
      Parameters:
      plugin - The main Graves plugin instance.
  • Method Details

    • getLocalServerName

      public String getLocalServerName()
      Gets the name of the local server from MultiLib.
      Returns:
      The local server name.
    • notifyGraveCreation

      public void notifyGraveCreation(Grave grave)
      Notifies other servers about a grave creation event.
      Parameters:
      grave - The grave that was created.
    • notifyGraveRemoval

      public void notifyGraveRemoval(Grave grave)
      Notifies other servers about a grave removal event.
      Parameters:
      grave - The grave that was removed.
    • notifyBlockCreation

      public void notifyBlockCreation(BlockData blockData)
      Notifies other servers about a block creation event.
      Parameters:
      blockData - The block data for the created block.
    • notifyHologramCreation

      public void notifyHologramCreation(HologramData hologramData)
      Notifies other servers about a hologram creation event.
      Parameters:
      hologramData - The hologram data for the created hologram.
    • notifyEntityCreation

      public void notifyEntityCreation(EntityData entityData)
      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.