Class CreatureProtectionArea.Entry
java.lang.Object
games.stendhal.server.entity.mapstuff.area.CreatureProtectionArea.Entry
- Enclosing class:
- CreatureProtectionArea
An entry representing creature criteria.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
blocked
protected boolean blockedWhether it should be blocked. -
clazz
The creature class to match. -
subclazz
The creature subclass to match.
-
-
Constructor Details
-
Entry
Create a criteria entry.- Parameters:
clazz- A creature class to match (ornullfor any).subclazz- A creature subclass to match (ornullfor any).blocked- Whether it should be blocked.
-
-
Method Details
-
isBlocked
public boolean isBlocked()Determine if a creature matching this criteria is blocked.- Returns:
trueif it should be blocked.
-
matches
Check if a class/subclass matches.- Parameters:
clazz-subclazz-- Returns:
- true if both are equals to fields
-