Package fr.andross.banitem.actions
Class BanData
java.lang.Object
fr.andross.banitem.actions.BanData
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 Summary
ConstructorsConstructorDescriptionBanData(@NotNull BanDataType type, @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 documentationBanDataType. -
Method Summary
Modifier and TypeMethodDescription@NotNull ObjectObject, which is an instance described by theBanDataType.@NotNull BanDataTypegetType()Ban data type.
-
Constructor Details
-
BanData
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 documentationBanDataType.- Parameters:
type- Type of ban dataobject- Object related to the ban data
-
-
Method Details
-
getType
Ban data type.- Returns:
- the ban data type
-
getObject
Object, which is an instance described by theBanDataType.- Returns:
- the object, which is an instance described by the
BanDataType
-