Class CreatureProtectionArea.Entry
java.lang.Object
games.stendhal.server.entity.mapstuff.area.CreatureProtectionArea.Entry
- Enclosing class:
- CreatureProtectionArea
An entry representing creature criteria.
-
Field Summary
-
Constructor Summary
-
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 (ornull
for any).subclazz
- A creature subclass to match (ornull
for any).blocked
- Whether it should be blocked.
-
-
Method Details
-
isBlocked
public boolean isBlocked()Determine if a creature matching this criteria is blocked.- Returns:
true
if it should be blocked.
-
matches
Check if a class/subclass matches.- Parameters:
clazz
-subclazz
-- Returns:
- true if both are equals to fields
-