Package net.glowstone.util.loot
Class LootingUtil
java.lang.Object
net.glowstone.util.loot.LootingUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanand(boolean a, boolean b) static booleanconditionValue(GlowLivingEntity entity, String condition) Evaluates a condition for an entity.static booleanstatic booleanstatic booleannot(boolean b) static booleanor(boolean a, boolean b) static Objectstatic long
-
Constructor Details
-
LootingUtil
public LootingUtil()
-
-
Method Details
-
is
-
and
public static boolean and(boolean a, boolean b) -
or
public static boolean or(boolean a, boolean b) -
not
public static boolean not(boolean b) -
isNot
-
conditionValue
Evaluates a condition for an entity.- Parameters:
entity- the entitycondition- the condition string to evaluate- Returns:
- true if the condition is satisfied; false otherwise
-
process
-
randomFishType
public static long randomFishType()
-