Class CondIsLootable
java.lang.Object
ch.njol.skript.lang.TriggerItem
ch.njol.skript.lang.Statement
ch.njol.skript.lang.Condition
ch.njol.skript.conditions.base.PropertyCondition<Object>
org.skriptlang.skript.bukkit.loottables.elements.conditions.CondIsLootable
- All Implemented Interfaces:
Debuggable, Simplifiable<Condition>, SyntaxElement, Predicate<Object>, Conditional<org.bukkit.event.Event>, RuntimeErrorProducer, SyntaxRuntimeErrorProducer
@Name("Is Lootable")
@Description("Checks whether an entity or block is lootable. Lootables are entities or blocks that can have a loot table.")
@Example("spawn a pig at event-location\nset {_pig} to last spawned entity\nif {_pig} is lootable:\n\tset loot table of {_pig} to \"minecraft:entities/cow\"\n\t# the pig will now drop the loot of a cow when killed, because it is indeed a lootable entity.\n") @Example("set block at event-location to chest\nif block at event-location is lootable:\n\tset loot table of block at event-location to \"minecraft:chests/simple_dungeon\"\n\t# the chest will now generate the loot of a simple dungeon when opened, because it is indeed a lootable block.\n") @Example("set block at event-location to white wool\nif block at event-location is lootable:\n\t# uh oh, nothing will happen because a wool is not a lootable block.\n")
@Since("2.10")
public class CondIsLootable
extends ch.njol.skript.conditions.base.PropertyCondition<Object>
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.njol.skript.conditions.base.PropertyCondition
ch.njol.skript.conditions.base.PropertyCondition.PropertyTypeNested classes/interfaces inherited from class Condition
Condition.ConditionTypeNested classes/interfaces inherited from interface Conditional
Conditional.Operator -
Field Summary
Fields inherited from class ch.njol.skript.conditions.base.PropertyCondition
DEFAULT_PRIORITYFields inherited from class TriggerItem
parent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected Stringstatic voidregister(SyntaxRegistry registry) Methods inherited from class ch.njol.skript.conditions.base.PropertyCondition
and, check, getExpr, getPatterns, getPropertyType, infoBuilder, init, negate, or, register, register, setExpr, test, toString, toStringMethods inherited from class Condition
evaluate, getNode, getSyntaxTypeName, isNegated, parse, preInit, run, setNegated, simplifyMethods inherited from class TriggerItem
debug, executionIntent, getActualNext, getIndentation, getNext, getParent, getTrigger, setNext, setParent, toString, walk, walkMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Conditional
evaluate, evaluateAnd, evaluateAnd, evaluateAnd, evaluateAnd, evaluateNot, evaluateNot, evaluateOr, evaluateOr, evaluateOr, evaluateOrMethods inherited from interface Debuggable
toStringMethods inherited from interface RuntimeErrorProducer
error, error, getRuntimeErrorManager, warning, warningMethods inherited from interface SyntaxElement
getParserMethods inherited from interface SyntaxRuntimeErrorProducer
getErrorSource
-
Constructor Details
-
CondIsLootable
public CondIsLootable()
-
-
Method Details
-
register
-
check
-
getPropertyName
-