Package ch.njol.skript.conditions
Class CondIsPassable
java.lang.Object
ch.njol.skript.lang.TriggerItem
ch.njol.skript.lang.Statement
ch.njol.skript.lang.Condition
ch.njol.skript.conditions.base.PropertyCondition<org.bukkit.block.Block>
ch.njol.skript.conditions.CondIsPassable
- All Implemented Interfaces:
Debuggable
,SyntaxElement
,Checker<org.bukkit.block.Block>
@Name("Is Passable")
@Description({"Checks whether a block is passable.","A block is passable if it has no colliding parts that would prevent players from moving through it.","Blocks like tall grass, flowers, signs, etc. are passable, but open doors, fence gates, trap doors, etc. are not because they still have parts that can be collided with."})
@Examples("if player\'s targeted block is passable")
@Since("2.5.1")
@RequiredPlugins("Minecraft 1.13.2+")
public class CondIsPassable
extends PropertyCondition<org.bukkit.block.Block>
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.njol.skript.conditions.base.PropertyCondition
PropertyCondition.PropertyType
-
Field Summary
Fields inherited from class ch.njol.skript.lang.TriggerItem
parent
-
Constructor Summary
-
Method Summary
Methods inherited from class ch.njol.skript.conditions.base.PropertyCondition
check, getPropertyType, init, register, register, setExpr, toString, toString
Methods inherited from class ch.njol.skript.lang.Condition
isNegated, parse, run, setNegated
Methods inherited from class ch.njol.skript.lang.TriggerItem
debug, getIndentation, getNext, getParent, getTrigger, setNext, setParent, toString, walk, walk
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.njol.skript.lang.SyntaxElement
getParser
-
Constructor Details
-
CondIsPassable
public CondIsPassable()
-
-
Method Details
-
check
public boolean check(org.bukkit.block.Block block)- Specified by:
check
in interfaceChecker<org.bukkit.block.Block>
- Specified by:
check
in classPropertyCondition<org.bukkit.block.Block>
-
getPropertyName
- Specified by:
getPropertyName
in classPropertyCondition<org.bukkit.block.Block>
-