Package net.citizensnpcs.commands
Class NPCCommands
java.lang.Object
net.citizensnpcs.commands.NPCCommands
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
activationrange
(CommandContext args, CommandSender sender, NPC npc, Integer range) void
age
(CommandContext args, CommandSender sender, NPC npc) void
aggressive
(CommandContext args, CommandSender sender, NPC npc, Boolean aggressive) void
ai
(CommandContext args, CommandSender sender, NPC npc, Boolean explicit) void
anchor
(CommandContext args, CommandSender sender, NPC npc, String save, String assume, String remove) void
armorstand
(CommandContext args, CommandSender sender, NPC npc, Boolean visible, Boolean small, Boolean gravity, Boolean arms, Boolean marker, Boolean baseplate) void
attribute
(CommandContext args, CommandSender sender, NPC npc, String attribute, Double value) void
bat
(CommandContext args, CommandSender sender, NPC npc, Boolean awake) void
breakblock
(CommandContext args, CommandSender sender, NPC npc, Double radius) void
chunkload
(CommandContext args, CommandSender sender, NPC npc) void
collidable
(CommandContext args, CommandSender sender, NPC npc, Boolean fluids) void
command
(CommandContext args, CommandSender sender, NPC npc, String permissions, Double cost, Integer experienceCost, Duration cooldown, Duration gcooldown, int n, int gn, Duration delay, String action) void
configgui
(CommandContext args, Player sender, NPC npc) void
controllable
(CommandContext args, CommandSender sender, NPC npc, Controllable.BuiltInControls controls, Boolean enabled) void
copy
(CommandContext args, CommandSender sender, NPC npc, String name) void
create
(CommandContext args, CommandSender sender, NPC npc, Location at, EntityType type, String traits, String nameplate, Duration temporaryDuration, String item, String templateName, String registryName) void
debug
(CommandContext args, CommandSender sender, NPC npc) void
deselect
(CommandContext args, CommandSender sender, NPC npc) void
despawn
(CommandContext args, CommandSender sender, NPC npc) void
drops
(CommandContext args, Player sender, NPC npc) void
endercrystal
(CommandContext args, CommandSender sender, NPC npc) void
enderman
(CommandContext args, CommandSender sender, NPC npc) void
entitypose
(CommandContext args, CommandSender sender, NPC npc, EntityPoseTrait.EntityPose pose) void
flyable
(CommandContext args, CommandSender sender, NPC npc, Boolean explicit) void
follow
(CommandContext args, CommandSender sender, NPC npc, Double margin, Boolean explicit) void
forcefield
(CommandContext args, CommandSender sender, NPC npc, Double width, Double height, Double strength, Double verticalStrength) void
gamemode
(CommandContext args, CommandSender sender, NPC npc, GameMode mode) void
glowing
(CommandContext args, CommandSender sender, NPC npc, ChatColor color) void
gravity
(CommandContext args, CommandSender sender, NPC npc) void
hitbox
(CommandContext args, CommandSender sender, NPC npc, Float scale, Float width, Float height, Vector offset) void
hologram
(CommandContext args, CommandSender sender, NPC npc, String action, String secondCompletion, Duration duration) void
home
(CommandContext args, CommandSender sender, NPC npc, Location loc, Duration delay, Double distance) void
horse
(CommandContext args, CommandSender sender, NPC npc, Horse.Color color, Horse.Style style) void
hurt
(CommandContext args, CommandSender sender, NPC npc) void
id
(CommandContext args, CommandSender sender, NPC npc) void
inventory
(CommandContext args, CommandSender sender, NPC npc, Player player) void
item
(CommandContext args, CommandSender sender, NPC npc, ItemStack item) void
itemframe
(CommandContext args, CommandSender sender, NPC npc, Boolean visible, Boolean fixed, Rotation rotation, ItemStack item, BlockFace face) void
jump
(CommandContext args, CommandSender sender, NPC npc) void
knockback
(CommandContext args, CommandSender sender, NPC npc, Boolean explicit) void
leashable
(CommandContext args, CommandSender sender, NPC npc) void
list
(CommandContext args, CommandSender sender, NPC npc, String owner, EntityType type, Integer page, String registry) void
lookClose
(CommandContext args, CommandSender sender, NPC npc, Boolean randomlook, Double range, Duration randomLookDelay, String randomYaw, String randomPitch, Boolean randomSwitchTargets, Boolean headonly, Boolean linkedbody, Boolean disableWhenNavigating, Boolean perPlayer, Boolean targetNPCs) void
metadata
(CommandContext args, CommandSender sender, NPC npc, String command, NPC.Metadata enumKey) void
minecart
(CommandContext args, CommandSender sender, NPC npc, String item) void
mirror
(CommandContext args, CommandSender sender, NPC npc, Boolean name, Boolean equipment) void
mount
(CommandContext args, CommandSender sender, NPC npc, String onnpc) void
moveto
(CommandContext args, CommandSender sender, NPC npc) void
name
(CommandContext args, CommandSender sender, NPC npc) void
npc
(CommandContext args, CommandSender sender, NPC npc) void
ocelot
(CommandContext args, CommandSender sender, NPC npc, Ocelot.Type type) void
owner
(CommandContext args, CommandSender sender, NPC npc) void
packet
(CommandContext args, CommandSender sender, NPC npc, Boolean explicit) void
painting
(CommandContext args, CommandSender sender, NPC npc, Art art) void
passive
(CommandContext args, CommandSender sender, NPC npc, Boolean set) void
pathfindingOptions
(CommandContext args, CommandSender sender, NPC npc, Float range, Boolean avoidwater, Boolean opendoors, Integer stationaryTicks, Double distanceMargin, Double pathDistanceMargin, Double attackRange, Integer fallingDistance, PathfinderType pathfinderType) void
pathto
(CommandContext args, CommandSender sender, NPC npc, String option, Double margin) void
pausepathfinding
(CommandContext args, CommandSender sender, NPC npc, Boolean rightclick, Double playerRange, Duration pauseDuration, Duration lockoutDuration) void
pickupitems
(CommandContext args, CommandSender sender, NPC npc, Boolean set) void
playeranimate
(CommandContext args, CommandSender sender, NPC npc, PlayerAnimation animation) void
playerfilter
(CommandContext args, CommandSender sender, NPC npc, UUID add, UUID remove, String removegroup, String addgroup, String addpermission, String removepermission, Double applyRange) void
playerlist
(CommandContext args, CommandSender sender, NPC npc) void
playsound
(CommandContext args, CommandSender sender, NPC npc, String sound, Float volume, Float pitch, Location at) void
pose
(CommandContext args, CommandSender sender, NPC npc, String save, String mirror, String assume, String remove, String defaultPose, Float yaw, Float pitch) void
power
(CommandContext args, CommandSender sender, NPC npc, Boolean explicit) void
rabbitType
(CommandContext args, CommandSender sender, NPC npc, Rabbit.Type type) void
remove
(CommandContext args, CommandSender sender, NPC npc, String owner, UUID eid, String world, String action) void
rename
(CommandContext args, CommandSender sender, NPC npc) void
respawn
(CommandContext args, CommandSender sender, NPC npc, Duration delay) void
rotate
(CommandContext args, CommandSender sender, NPC npc, Float yaw, Float head, Float pitch, Location towards, String entity) void
rotationsettings
(CommandContext args, CommandSender sender, NPC npc, String type, Boolean linkBody, Boolean headOnly, Float maxPitchPerTick, Float maxYawPerTick, float[] pitchRange, float[] yawRange) void
scaledhealth
(CommandContext args, CommandSender sender, NPC npc, Double scaled) void
select
(CommandContext args, CommandSender sender, NPC npc, double range, String registryName) void
setequipment
(CommandContext args, CommandSender sender, NPC npc, Equipment.EquipmentSlot slot, ItemStack item) void
sheep
(CommandContext args, CommandSender sender, NPC npc, DyeColor color, Boolean sheared) void
shop
(CommandContext args, Player sender, NPC npc, String action) void
sitting
(CommandContext args, CommandSender sender, NPC npc, Boolean explicit, Location at) void
skin
(CommandContext args, CommandSender sender, NPC npc, String url, String file) void
skinLayers
(CommandContext args, CommandSender sender, NPC npc, Boolean cape, Boolean hat, Boolean jacket, Boolean sleeves, Boolean pants) void
slimeSize
(CommandContext args, CommandSender sender, NPC npc) void
sound
(CommandContext args, CommandSender sender, NPC npc, Sound death, Sound ambient, Sound hurt) void
spawn
(CommandContext args, CommandSender sender, NPC npc) void
speak
(CommandContext args, CommandSender sender, NPC npc, Duration bubbleDuration, String type, String target, Float range) void
speed
(CommandContext args, CommandSender sender, NPC npc) void
swim
(CommandContext args, CommandSender sender, NPC npc, Boolean set) void
target
(CommandContext args, CommandSender sender, NPC npc, Player player) void
targetable
(CommandContext args, CommandSender sender, NPC npc) void
tp
(CommandContext args, Player player, NPC npc) void
tphere
(CommandContext args, CommandSender sender, NPC npc) void
tpto
(CommandContext args, CommandSender sender, NPC npc) void
trackingrange
(CommandContext args, CommandSender sender, NPC npc, Integer range) void
type
(CommandContext args, CommandSender sender, NPC npc, EntityType type) void
undo
(CommandContext args, CommandSender sender, NPC npc, String action) void
useitem
(CommandContext args, CommandSender sender, NPC npc) void
vulnerable
(CommandContext args, CommandSender sender, NPC npc) void
wander
(CommandContext args, CommandSender sender, NPC npc, String command) void
wither
(CommandContext args, CommandSender sender, NPC npc, Boolean invulnerable, Boolean arrows, Integer invulnerableTicks) void
wolf
(CommandContext args, CommandSender sender, NPC npc, String collar, String variant)
-
Constructor Details
-
NPCCommands
-
-
Method Details
-
activationrange
-
age
- Throws:
CommandException
-
aggressive
-
ai
public void ai(CommandContext args, CommandSender sender, NPC npc, Boolean explicit) throws CommandException - Throws:
CommandException
-
anchor
public void anchor(CommandContext args, CommandSender sender, NPC npc, String save, String assume, String remove) throws CommandException - Throws:
CommandException
-
armorstand
public void armorstand(CommandContext args, CommandSender sender, NPC npc, Boolean visible, Boolean small, Boolean gravity, Boolean arms, Boolean marker, Boolean baseplate) throws CommandException - Throws:
CommandException
-
attribute
public void attribute(CommandContext args, CommandSender sender, NPC npc, String attribute, Double value) -
bat
public void bat(CommandContext args, CommandSender sender, NPC npc, Boolean awake) throws CommandException - Throws:
CommandException
-
breakblock
public void breakblock(CommandContext args, CommandSender sender, NPC npc, Double radius) throws CommandException - Throws:
CommandException
-
chunkload
-
collidable
public void collidable(CommandContext args, CommandSender sender, NPC npc, Boolean fluids) throws CommandException - Throws:
CommandException
-
command
public void command(CommandContext args, CommandSender sender, NPC npc, String permissions, Double cost, Integer experienceCost, Duration cooldown, Duration gcooldown, int n, int gn, Duration delay, String action) throws CommandException - Throws:
CommandException
-
configgui
-
controllable
public void controllable(CommandContext args, CommandSender sender, NPC npc, Controllable.BuiltInControls controls, Boolean enabled) throws CommandException - Throws:
CommandException
-
copy
public void copy(CommandContext args, CommandSender sender, NPC npc, String name) throws CommandException - Throws:
CommandException
-
create
public void create(CommandContext args, CommandSender sender, NPC npc, Location at, EntityType type, String traits, String nameplate, Duration temporaryDuration, String item, String templateName, String registryName) throws CommandException - Throws:
CommandException
-
debug
- Throws:
CommandException
-
deselect
-
despawn
- Throws:
CommandException
-
drops
- Throws:
CommandException
-
endercrystal
public void endercrystal(CommandContext args, CommandSender sender, NPC npc) throws CommandException - Throws:
CommandException
-
enderman
- Throws:
CommandException
-
entitypose
public void entitypose(CommandContext args, CommandSender sender, NPC npc, EntityPoseTrait.EntityPose pose) throws CommandException - Throws:
CommandException
-
flyable
public void flyable(CommandContext args, CommandSender sender, NPC npc, Boolean explicit) throws CommandException - Throws:
CommandException
-
follow
public void follow(CommandContext args, CommandSender sender, NPC npc, Double margin, Boolean explicit) throws CommandException - Throws:
CommandException
-
forcefield
public void forcefield(CommandContext args, CommandSender sender, NPC npc, Double width, Double height, Double strength, Double verticalStrength) throws CommandException - Throws:
CommandException
-
gamemode
-
glowing
public void glowing(CommandContext args, CommandSender sender, NPC npc, ChatColor color) throws CommandException - Throws:
CommandException
-
gravity
-
hitbox
public void hitbox(CommandContext args, CommandSender sender, NPC npc, Float scale, Float width, Float height, Vector offset) -
hologram
public void hologram(CommandContext args, CommandSender sender, NPC npc, String action, String secondCompletion, Duration duration) throws CommandException - Throws:
CommandException
-
home
public void home(CommandContext args, CommandSender sender, NPC npc, Location loc, Duration delay, Double distance) throws CommandException - Throws:
CommandException
-
horse
public void horse(CommandContext args, CommandSender sender, NPC npc, Horse.Color color, Horse.Style style) throws CommandException - Throws:
CommandException
-
hurt
-
id
-
inventory
-
item
public void item(CommandContext args, CommandSender sender, NPC npc, ItemStack item) throws CommandException - Throws:
CommandException
-
itemframe
public void itemframe(CommandContext args, CommandSender sender, NPC npc, Boolean visible, Boolean fixed, Rotation rotation, ItemStack item, BlockFace face) throws CommandException - Throws:
CommandException
-
jump
-
knockback
-
leashable
-
list
public void list(CommandContext args, CommandSender sender, NPC npc, String owner, EntityType type, Integer page, String registry) throws CommandException - Throws:
CommandException
-
lookClose
public void lookClose(CommandContext args, CommandSender sender, NPC npc, Boolean randomlook, Double range, Duration randomLookDelay, String randomYaw, String randomPitch, Boolean randomSwitchTargets, Boolean headonly, Boolean linkedbody, Boolean disableWhenNavigating, Boolean perPlayer, Boolean targetNPCs) throws CommandException - Throws:
CommandException
-
metadata
public void metadata(CommandContext args, CommandSender sender, NPC npc, String command, NPC.Metadata enumKey) throws CommandException - Throws:
CommandException
-
minecart
public void minecart(CommandContext args, CommandSender sender, NPC npc, String item) throws CommandException - Throws:
CommandException
-
mirror
public void mirror(CommandContext args, CommandSender sender, NPC npc, Boolean name, Boolean equipment) throws CommandException - Throws:
CommandException
-
mount
public void mount(CommandContext args, CommandSender sender, NPC npc, String onnpc) throws CommandException - Throws:
CommandException
-
moveto
- Throws:
CommandException
-
name
-
npc
-
ocelot
public void ocelot(CommandContext args, CommandSender sender, NPC npc, Ocelot.Type type) throws CommandException - Throws:
CommandException
-
owner
- Throws:
CommandException
-
packet
public void packet(CommandContext args, CommandSender sender, NPC npc, Boolean explicit) throws CommandException - Throws:
CommandException
-
painting
public void painting(CommandContext args, CommandSender sender, NPC npc, Art art) throws CommandException - Throws:
CommandException
-
passive
public void passive(CommandContext args, CommandSender sender, NPC npc, Boolean set) throws CommandException - Throws:
CommandException
-
pathfindingOptions
public void pathfindingOptions(CommandContext args, CommandSender sender, NPC npc, Float range, Boolean avoidwater, Boolean opendoors, Integer stationaryTicks, Double distanceMargin, Double pathDistanceMargin, Double attackRange, Integer fallingDistance, PathfinderType pathfinderType) throws CommandException - Throws:
CommandException
-
pathto
public void pathto(CommandContext args, CommandSender sender, NPC npc, String option, Double margin) throws CommandException - Throws:
CommandException
-
pausepathfinding
public void pausepathfinding(CommandContext args, CommandSender sender, NPC npc, Boolean rightclick, Double playerRange, Duration pauseDuration, Duration lockoutDuration) throws CommandException - Throws:
CommandException
-
pickupitems
public void pickupitems(CommandContext args, CommandSender sender, NPC npc, Boolean set) throws CommandException - Throws:
CommandException
-
playeranimate
public void playeranimate(CommandContext args, CommandSender sender, NPC npc, PlayerAnimation animation) throws CommandException - Throws:
CommandException
-
playerfilter
public void playerfilter(CommandContext args, CommandSender sender, NPC npc, UUID add, UUID remove, String removegroup, String addgroup, String addpermission, String removepermission, Double applyRange) -
playerlist
-
playsound
public void playsound(CommandContext args, CommandSender sender, NPC npc, String sound, Float volume, Float pitch, Location at) throws CommandException - Throws:
CommandException
-
pose
public void pose(CommandContext args, CommandSender sender, NPC npc, String save, String mirror, String assume, String remove, String defaultPose, Float yaw, Float pitch) throws CommandException - Throws:
CommandException
-
power
-
rabbitType
public void rabbitType(CommandContext args, CommandSender sender, NPC npc, Rabbit.Type type) throws CommandException - Throws:
CommandException
-
remove
public void remove(CommandContext args, CommandSender sender, NPC npc, String owner, UUID eid, String world, String action) throws CommandException - Throws:
CommandException
-
rename
-
respawn
-
rotate
public void rotate(CommandContext args, CommandSender sender, NPC npc, Float yaw, Float head, Float pitch, Location towards, String entity) throws CommandException - Throws:
CommandException
-
rotationsettings
public void rotationsettings(CommandContext args, CommandSender sender, NPC npc, String type, Boolean linkBody, Boolean headOnly, Float maxPitchPerTick, Float maxYawPerTick, float[] pitchRange, float[] yawRange) throws CommandException - Throws:
CommandException
-
scaledhealth
-
select
public void select(CommandContext args, CommandSender sender, NPC npc, double range, String registryName) throws CommandException - Throws:
CommandException
-
setequipment
public void setequipment(CommandContext args, CommandSender sender, NPC npc, Equipment.EquipmentSlot slot, ItemStack item) throws CommandException - Throws:
CommandException
-
sheep
public void sheep(CommandContext args, CommandSender sender, NPC npc, DyeColor color, Boolean sheared) throws CommandException - Throws:
CommandException
-
shop
public void shop(CommandContext args, Player sender, NPC npc, String action) throws CommandException - Throws:
CommandException
-
sitting
public void sitting(CommandContext args, CommandSender sender, NPC npc, Boolean explicit, Location at) -
skin
public void skin(CommandContext args, CommandSender sender, NPC npc, String url, String file) throws CommandException - Throws:
CommandException
-
skinLayers
public void skinLayers(CommandContext args, CommandSender sender, NPC npc, Boolean cape, Boolean hat, Boolean jacket, Boolean sleeves, Boolean pants) throws CommandException - Throws:
CommandException
-
slimeSize
-
sound
public void sound(CommandContext args, CommandSender sender, NPC npc, Sound death, Sound ambient, Sound hurt) throws CommandException - Throws:
CommandException
-
spawn
- Throws:
CommandException
-
speak
public void speak(CommandContext args, CommandSender sender, NPC npc, Duration bubbleDuration, String type, String target, Float range) throws CommandException - Throws:
CommandException
-
speed
- Throws:
CommandException
-
swim
public void swim(CommandContext args, CommandSender sender, NPC npc, Boolean set) throws CommandException - Throws:
CommandException
-
target
public void target(CommandContext args, CommandSender sender, NPC npc, Player player) throws CommandUsageException - Throws:
CommandUsageException
-
targetable
-
tp
-
tphere
- Throws:
CommandException
-
tpto
- Throws:
CommandException
-
trackingrange
-
type
public void type(CommandContext args, CommandSender sender, NPC npc, EntityType type) throws CommandException - Throws:
CommandException
-
undo
public void undo(CommandContext args, CommandSender sender, NPC npc, String action) throws CommandException - Throws:
CommandException
-
useitem
- Throws:
CommandException
-
vulnerable
-
wander
public void wander(CommandContext args, CommandSender sender, NPC npc, String command) throws CommandException - Throws:
CommandException
-
wither
public void wither(CommandContext args, CommandSender sender, NPC npc, Boolean invulnerable, Boolean arrows, Integer invulnerableTicks) throws CommandException - Throws:
CommandException
-
wolf
public void wolf(CommandContext args, CommandSender sender, NPC npc, String collar, String variant) throws CommandException - Throws:
CommandException
-