Package net.glowstone.util.loot
Class LootingUtil
java.lang.Object
net.glowstone.util.loot.LootingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
and
(boolean a, boolean b) static boolean
conditionValue
(GlowLivingEntity entity, String condition) Evaluates a condition for an entity.static boolean
static boolean
static boolean
not
(boolean b) static boolean
or
(boolean a, boolean b) static Object
static 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()
-