wyvern.lib.classes.traps
Class RustTrap.WornIronPredicate

java.lang.Object
  extended bywyvern.lib.classes.traps.RustTrap.WornIronPredicate
All Implemented Interfaces:
Predicate
Enclosing class:
RustTrap

public static class RustTrap.WornIronPredicate
extends java.lang.Object
implements Predicate

Checks if an object is worn/wielded and made of iron.


Field Summary
static Predicate INSTANCE
           
 
Constructor Summary
RustTrap.WornIronPredicate()
           
 
Method Summary
 boolean predicate(GameObject obj)
          Returns true if object is equipped and made of iron.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final Predicate INSTANCE
Constructor Detail

RustTrap.WornIronPredicate

public RustTrap.WornIronPredicate()
Method Detail

predicate

public boolean predicate(GameObject obj)
Returns true if object is equipped and made of iron.

Specified by:
predicate in interface Predicate
Parameters:
obj - any GameObject
Returns:
true if the object passes, else false