-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
67 additions
and
7 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...t/jakegblp/lusk/elements/minecraft/entities/entity/conditions/CondEntityHasFixedPose.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package it.jakegblp.lusk.elements.minecraft.entities.entity.conditions; | ||
|
||
import ch.njol.skript.conditions.base.PropertyCondition; | ||
import ch.njol.skript.doc.*; | ||
import org.bukkit.entity.Entity; | ||
|
||
@Name("Entity - has Fixed Pose") | ||
@Description(""" | ||
Checks whether the provided entities have a fixed pose.""") | ||
@Examples({"if target has a fixed pose:"}) | ||
@Since("1.3.3") | ||
@RequiredPlugins("Paper 1.20.1+") | ||
public class CondEntityHasFixedPose extends PropertyCondition<Entity> { | ||
|
||
static { | ||
register(CondEntityHasFixedPose.class, PropertyType.HAVE, "[a] fixed pose", "entities"); | ||
} | ||
|
||
@Override | ||
public boolean check(Entity value) { | ||
return value.hasFixedPose(); | ||
} | ||
|
||
@Override | ||
protected String getPropertyName() { | ||
return "a fixed pose"; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters