java.lang.Object
net.megavex.scoreboardlibrary.implementation.packetAdapter.packetevents.ObjectivePacketAdapterImpl
All Implemented Interfaces:
net.megavex.scoreboardlibrary.implementation.packetAdapter.objective.ObjectivePacketAdapter

public class ObjectivePacketAdapterImpl extends Object implements net.megavex.scoreboardlibrary.implementation.packetAdapter.objective.ObjectivePacketAdapter
  • Constructor Summary

    Constructors
    Constructor
    Description
    ObjectivePacketAdapterImpl(@NotNull net.megavex.scoreboardlibrary.implementation.packetAdapter.PacketSender<com.github.retrooper.packetevents.wrapper.PacketWrapper<?>> provider, @NotNull com.github.retrooper.packetevents.PacketEventsAPI<?> packetEvents, @NotNull String objectiveName)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    display(@NotNull Collection<org.bukkit.entity.Player> players, @NotNull net.megavex.scoreboardlibrary.api.objective.ObjectiveDisplaySlot slot)
     
    @NotNull String
     
    void
    remove(@NotNull Collection<org.bukkit.entity.Player> players)
     
    void
    removeScore(@NotNull Collection<org.bukkit.entity.Player> players, @NotNull String entry)
     
    void
    sendProperties(@NotNull Collection<org.bukkit.entity.Player> players, @NotNull net.megavex.scoreboardlibrary.implementation.packetAdapter.PropertiesPacketType packetType, @NotNull net.kyori.adventure.text.Component value, @NotNull net.megavex.scoreboardlibrary.api.objective.ObjectiveRenderType renderType, @Nullable net.megavex.scoreboardlibrary.api.objective.ScoreFormat scoreFormat)
     
    void
    sendScore(@NotNull Collection<org.bukkit.entity.Player> players, @NotNull String entry, int value, @Nullable net.kyori.adventure.text.Component display, @Nullable net.megavex.scoreboardlibrary.api.objective.ScoreFormat scoreFormat)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ObjectivePacketAdapterImpl

      public ObjectivePacketAdapterImpl(@NotNull @NotNull net.megavex.scoreboardlibrary.implementation.packetAdapter.PacketSender<com.github.retrooper.packetevents.wrapper.PacketWrapper<?>> provider, @NotNull @NotNull com.github.retrooper.packetevents.PacketEventsAPI<?> packetEvents, @NotNull @NotNull String objectiveName)
  • Method Details

    • objectiveName

      @NotNull public @NotNull String objectiveName()
      Specified by:
      objectiveName in interface net.megavex.scoreboardlibrary.implementation.packetAdapter.objective.ObjectivePacketAdapter
    • display

      public void display(@NotNull @NotNull Collection<org.bukkit.entity.Player> players, @NotNull @NotNull net.megavex.scoreboardlibrary.api.objective.ObjectiveDisplaySlot slot)
      Specified by:
      display in interface net.megavex.scoreboardlibrary.implementation.packetAdapter.objective.ObjectivePacketAdapter
    • sendProperties

      public void sendProperties(@NotNull @NotNull Collection<org.bukkit.entity.Player> players, @NotNull @NotNull net.megavex.scoreboardlibrary.implementation.packetAdapter.PropertiesPacketType packetType, @NotNull @NotNull net.kyori.adventure.text.Component value, @NotNull @NotNull net.megavex.scoreboardlibrary.api.objective.ObjectiveRenderType renderType, @Nullable @Nullable net.megavex.scoreboardlibrary.api.objective.ScoreFormat scoreFormat)
      Specified by:
      sendProperties in interface net.megavex.scoreboardlibrary.implementation.packetAdapter.objective.ObjectivePacketAdapter
    • remove

      public void remove(@NotNull @NotNull Collection<org.bukkit.entity.Player> players)
      Specified by:
      remove in interface net.megavex.scoreboardlibrary.implementation.packetAdapter.objective.ObjectivePacketAdapter
    • sendScore

      public void sendScore(@NotNull @NotNull Collection<org.bukkit.entity.Player> players, @NotNull @NotNull String entry, int value, @Nullable @Nullable net.kyori.adventure.text.Component display, @Nullable @Nullable net.megavex.scoreboardlibrary.api.objective.ScoreFormat scoreFormat)
      Specified by:
      sendScore in interface net.megavex.scoreboardlibrary.implementation.packetAdapter.objective.ObjectivePacketAdapter
    • removeScore

      public void removeScore(@NotNull @NotNull Collection<org.bukkit.entity.Player> players, @NotNull @NotNull String entry)
      Specified by:
      removeScore in interface net.megavex.scoreboardlibrary.implementation.packetAdapter.objective.ObjectivePacketAdapter