Package fr.andross.banitem.items.meta
Class NBTAPI
java.lang.Object
fr.andross.banitem.items.meta.MetaTypeComparator
fr.andross.banitem.items.meta.NBTAPI
A simple meta comparator to compare NBT.
- Version:
- 3.2
- Author:
- Andross
-
Field Summary
Fields inherited from class fr.andross.banitem.items.meta.MetaTypeComparator
configurationProperties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(@NotNull BannedItem bannedItem) Check if the meta type configured matches on the item involved.Methods inherited from class fr.andross.banitem.items.meta.MetaTypeComparator
isValid, setValid
-
Constructor Details
-
NBTAPI
Prepare the configured property to be compared with an item.- Parameters:
configurationProperties
- the configured property valuedebug
- the debug handler
-
-
Method Details
-
matches
Description copied from class:MetaTypeComparator
Check if the meta type configured matches on the item involved.- Specified by:
matches
in classMetaTypeComparator
- Parameters:
bannedItem
- the current item involved- Returns:
- true if the meta is present on the item, otherwise false
-