Search in sources :

Example 6 with Pose

use of net.citizensnpcs.util.Pose in project Citizens2 by CitizensDev.

the class Poses method addPose.

public boolean addPose(String name, Location location) {
    name = name.toLowerCase();
    Pose newPose = new Pose(name, location.getPitch(), location.getYaw());
    if (poses.containsValue(newPose) || poses.containsKey(name))
        return false;
    poses.put(name, newPose);
    return true;
}
Also used : Pose(net.citizensnpcs.util.Pose)

Aggregations

Pose (net.citizensnpcs.util.Pose)6 NPC (net.citizensnpcs.api.npc.NPC)2 Trait (net.citizensnpcs.api.trait.Trait)2 Anchor (net.citizensnpcs.util.Anchor)2 AssignmentScriptContainer (com.denizenscript.denizen.scripts.containers.core.AssignmentScriptContainer)1 FlaggableObject (com.denizenscript.denizencore.flags.FlaggableObject)1 ElementTag (com.denizenscript.denizencore.objects.core.ElementTag)1 ListTag (com.denizenscript.denizencore.objects.core.ListTag)1 ScriptTag (com.denizenscript.denizencore.objects.core.ScriptTag)1 ArrayList (java.util.ArrayList)1 Pattern (java.util.regex.Pattern)1 FlagManager (net.aufdemrand.denizen.flags.FlagManager)1 Property (net.aufdemrand.denizencore.objects.properties.Property)1 CommandException (net.citizensnpcs.api.command.exception.CommandException)1 DataKey (net.citizensnpcs.api.util.DataKey)1 MemoryDataKey (net.citizensnpcs.api.util.MemoryDataKey)1 Paginator (net.citizensnpcs.api.util.Paginator)1 SkinnableEntity (net.citizensnpcs.npc.skin.SkinnableEntity)1 Anchors (net.citizensnpcs.trait.Anchors)1 LookClose (net.citizensnpcs.trait.LookClose)1