NPCAppearanceCommand
Package: com.hypixel.hytale.server.npc.commands
public class NPCAppearanceCommand extends NPCWorldCommandBaseImplements /npc appearance. Changes the model/appearance of a target NPC at runtime by calling NPCEntity.setAppearance().
Arguments
Section titled “Arguments”| Argument | Type | Required | Description |
|---|---|---|---|
model | ModelAsset | yes | The model asset to apply to the NPC |
Constructor
Section titled “Constructor”public NPCAppearanceCommand()Registers as sub-command "appearance" with translation key "server.commands.npc.appearance.desc".
Methods
Section titled “Methods”@Overrideprotected void execute(@Nonnull CommandContext context, @Nonnull NPCEntity npc, @Nonnull World world, @Nonnull Store<EntityStore> store, @Nonnull Ref<EntityStore> ref)Retrieves the model argument and calls npc.setAppearance(ref, model, store).
Related Types
Section titled “Related Types”- NPCWorldCommandBase — base class providing NPC target resolution
- NPCCommand — parent command collection
Hydex is an independent community resource. Hytale is a trademark of Hypixel Studios. Hydex is not affiliated with or endorsed by Hypixel Studios.