Class BanData

java.lang.Object
fr.andross.banitem.actions.BanData

public final class BanData extends Object
The ban data used into a ban check. The object will be an instance of the described BanDataType. Example: if (type == BanDataType.CREATIVE), the object is a boolean.
Version:
3.1
Author:
Andross
  • Constructor Details

    • BanData

      public BanData(@NotNull @NotNull BanDataType type, @NotNull @NotNull Object object)
      Constructor a BanData object, where the type represents the type of data and the object represents an instance of the type as described in its documentation BanDataType.
      Parameters:
      type - Type of ban data
      object - Object related to the ban data
  • Method Details

    • getType

      @NotNull public @NotNull BanDataType getType()
      Ban data type.
      Returns:
      the ban data type
    • getObject

      @NotNull public @NotNull Object getObject()
      Object, which is an instance described by the BanDataType.
      Returns:
      the object, which is an instance described by the BanDataType