Class MockPaperProfileBanEntry

java.lang.Object
be.seeseemelk.mockbukkit.ban.MockPaperProfileBanEntry
All Implemented Interfaces:
org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>

public class MockPaperProfileBanEntry extends Object implements org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
  • Constructor Details

    • MockPaperProfileBanEntry

      public MockPaperProfileBanEntry(com.destroystokyo.paper.profile.PlayerProfile target, String source, Date expiration, String reason)
  • Method Details

    • getTarget

      @Deprecated(since="1.20") @NotNull public @NotNull String getTarget()
      Deprecated.
      Specified by:
      getTarget in interface org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
    • getBanTarget

      @NotNull public @NotNull com.destroystokyo.paper.profile.PlayerProfile getBanTarget()
      Specified by:
      getBanTarget in interface org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
    • getCreated

      @NotNull public @NotNull Date getCreated()
      Specified by:
      getCreated in interface org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
    • setCreated

      public void setCreated(@NotNull @NotNull Date created)
      Specified by:
      setCreated in interface org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
    • getSource

      @NotNull public @NotNull String getSource()
      Specified by:
      getSource in interface org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
    • setSource

      public void setSource(@NotNull @NotNull String source)
      Specified by:
      setSource in interface org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
    • getExpiration

      @Nullable public @Nullable Date getExpiration()
      Specified by:
      getExpiration in interface org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
    • setExpiration

      public void setExpiration(@Nullable @Nullable Date expiration)
      Specified by:
      setExpiration in interface org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
    • getReason

      @Nullable public @Nullable String getReason()
      Specified by:
      getReason in interface org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
    • setReason

      public void setReason(@Nullable @Nullable String reason)
      Specified by:
      setReason in interface org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
    • save

      public void save()
      Specified by:
      save in interface org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>
    • remove

      public void remove()
      Specified by:
      remove in interface org.bukkit.BanEntry<com.destroystokyo.paper.profile.PlayerProfile>