Package fr.andross.banitem.items.meta
Class LoreLineContains
java.lang.Object
fr.andross.banitem.items.meta.MetaTypeComparator
fr.andross.banitem.items.meta.LoreLineContains
A simple meta comparator to check if the line inside a lore matches a configured string.
- Version:
- 3.1
- Author:
- Andross
-
Field Summary
Fields inherited from class fr.andross.banitem.items.meta.MetaTypeComparator
configurationProperties -
Constructor Summary
ConstructorsConstructorDescriptionLoreLineContains(Object configurationProperties, Debug debug) Prepare the configured property to be compared with an item. -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(@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
-
LoreLineContains
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:MetaTypeComparatorCheck if the meta type configured matches on the item involved.- Specified by:
matchesin classMetaTypeComparator- Parameters:
bannedItem- the current item involved- Returns:
- true if the meta is present on the item, otherwise false
-