Interface AttributeWrangler
- All Known Implementing Classes:
Administrator
,Bot
,Item
,Mob
,NormalItem
,Person
,Room
,Shopkeeper
,ShopkeeperList
,User
public interface AttributeWrangler
Interface on what is allowed to be done with attributes.
- Author:
- maartenl
-
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String name) Retrieves an attribute, returns null if not found.boolean
removeAttribute
(String name) Removes an attribute by name.void
setAttribute
(String name, String value) Set the value of the attribute, creates the attribute if the attribute does not exist.boolean
verifyAttribute
(String name, String value) Verify if the attribute exists, and has the proper value.
-
Method Details
-
removeAttribute
Removes an attribute by name.- Parameters:
name
- the name of the attribute, for example "guildwish".- Returns:
- false if not found, true if removed.
-
getAttribute
-
setAttribute
-
verifyAttribute
-