Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- action() - Method in record class com.cotani.npc.api.NpcInteractEvent
-
Returns the value of the
actionrecord component. - allNpcs() - Method in interface com.cotani.npc.api.NpcModule
-
Returns an unmodifiable snapshot of all registered NPCs.
B
- boots() - Method in record class com.cotani.npc.api.NpcEquipment
-
Returns the value of the
bootsrecord component. - boots(ItemStack) - Method in class com.cotani.npc.api.NpcEquipment.Builder
- build() - Method in class com.cotani.npc.api.Npc.Builder
- build() - Method in class com.cotani.npc.api.NpcEquipment.Builder
- builder() - Static method in record class com.cotani.npc.api.Npc
-
Creates a new fluent
Npc.Builder. - builder() - Static method in record class com.cotani.npc.api.NpcEquipment
-
Creates a new fluent
NpcEquipment.Builder. - Builder() - Constructor for class com.cotani.npc.api.Npc.Builder
- Builder() - Constructor for class com.cotani.npc.api.NpcEquipment.Builder
C
- chestplate() - Method in record class com.cotani.npc.api.NpcEquipment
-
Returns the value of the
chestplaterecord component. - chestplate(ItemStack) - Method in class com.cotani.npc.api.NpcEquipment.Builder
- close() - Method in interface com.cotani.npc.api.NpcModule
- com.cotani.npc - package com.cotani.npc
- com.cotani.npc.api - package com.cotani.npc.api
- CotaniNpcs - Class in com.cotani.npc
-
Main factory for creating and configuring the Cotani NPC module.
- create(Consumer) - Method in interface com.cotani.npc.api.NpcModule
-
Creates and registers a new NPC using a fluent configuration lambda.
- create(Location, String) - Method in interface com.cotani.npc.api.NpcModule
-
Creates and registers a new NPC with a location and name.
- create(Plugin, PaperTaskScheduler) - Static method in class com.cotani.npc.CotaniNpcs
-
Creates and registers a new
NpcModuleinstance. - create(Plugin, PaperTaskScheduler, NpcPacketAdapter) - Static method in class com.cotani.npc.CotaniNpcs
- CROUCHING - Enum constant in enum class com.cotani.npc.api.NpcPose
-
Sneaking or crouching pose.
D
- DEFAULT_VIEW_DISTANCE - Static variable in record class com.cotani.npc.api.Npc
- despawn(Npc) - Method in interface com.cotani.npc.api.NpcModule
-
Despawns an NPC, removing it from all viewers.
- despawn(UUID) - Method in interface com.cotani.npc.api.NpcModule
-
Despawns an NPC by its unique identifier.
- displayName() - Method in record class com.cotani.npc.api.Npc
-
Returns the value of the
displayNamerecord component.
E
- EMPTY - Static variable in record class com.cotani.npc.api.NpcEquipment
- EMPTY - Static variable in record class com.cotani.npc.api.NpcSkin
- equals(Object) - Method in record class com.cotani.npc.api.Npc
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.npc.api.NpcEquipment
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.npc.api.NpcInteractEvent
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.cotani.npc.api.NpcSkin
-
Indicates whether some other object is "equal to" this one.
- equipment() - Method in record class com.cotani.npc.api.Npc
-
Returns the value of the
equipmentrecord component. - equipment(NpcEquipment) - Method in class com.cotani.npc.api.Npc.Builder
F
- fetchByUsernameAsync(String) - Method in interface com.cotani.npc.api.NpcSkinFetcher
-
Asynchronously fetches the skin for a player by Minecraft username.
- fetchByUuidAsync(String) - Method in interface com.cotani.npc.api.NpcSkinFetcher
-
Asynchronously fetches the skin for a player by Mojang UUID string.
- findNpc(UUID) - Method in interface com.cotani.npc.api.NpcModule
-
Finds an NPC by its unique identifier, if registered.
G
- glowColor() - Method in record class com.cotani.npc.api.Npc
-
Returns the value of the
glowColorrecord component. - glowColor(NamedTextColor) - Method in class com.cotani.npc.api.Npc.Builder
- glowing() - Method in record class com.cotani.npc.api.Npc
-
Returns the value of the
glowingrecord component. - glowing(boolean) - Method in class com.cotani.npc.api.Npc.Builder
H
- hand() - Method in record class com.cotani.npc.api.NpcInteractEvent
-
Returns the value of the
handrecord component. - hashCode() - Method in record class com.cotani.npc.api.Npc
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.npc.api.NpcEquipment
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.npc.api.NpcInteractEvent
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.cotani.npc.api.NpcSkin
-
Returns a hash code value for this object.
- helmet() - Method in record class com.cotani.npc.api.NpcEquipment
-
Returns the value of the
helmetrecord component. - helmet(ItemStack) - Method in class com.cotani.npc.api.NpcEquipment.Builder
I
- id() - Method in record class com.cotani.npc.api.Npc
-
Returns the value of the
idrecord component. - id(UUID) - Method in class com.cotani.npc.api.Npc.Builder
- interactionHandler() - Method in record class com.cotani.npc.api.Npc
-
Returns the value of the
interactionHandlerrecord component. - isPresent() - Method in record class com.cotani.npc.api.NpcSkin
-
Whether this skin has valid texture data.
L
- LEFT_CLICK - Enum constant in enum class com.cotani.npc.api.NpcInteractEvent.Action
-
Left-click / attack.
- leggings() - Method in record class com.cotani.npc.api.NpcEquipment
-
Returns the value of the
leggingsrecord component. - leggings(ItemStack) - Method in class com.cotani.npc.api.NpcEquipment.Builder
- location() - Method in record class com.cotani.npc.api.Npc
-
Returns the value of the
locationrecord component. - location(Location) - Method in class com.cotani.npc.api.Npc.Builder
- lookAtPlayer() - Method in record class com.cotani.npc.api.Npc
-
Returns the value of the
lookAtPlayerrecord component. - lookAtPlayer(boolean) - Method in class com.cotani.npc.api.Npc.Builder
M
- mainHand() - Method in record class com.cotani.npc.api.NpcEquipment
-
Returns the value of the
mainHandrecord component. - mainHand(ItemStack) - Method in class com.cotani.npc.api.NpcEquipment.Builder
N
- name(String) - Method in class com.cotani.npc.api.Npc.Builder
- name(Component) - Method in class com.cotani.npc.api.Npc.Builder
- nameEscaped(String) - Method in class com.cotani.npc.api.Npc.Builder
- noop() - Static method in interface com.cotani.npc.api.NpcPacketAdapter
- npc() - Method in record class com.cotani.npc.api.NpcInteractEvent
-
Returns the value of the
npcrecord component. - Npc - Record Class in com.cotani.npc.api
-
Immutable configuration of a virtual player NPC.
- Npc(UUID, Component, Location, NpcSkin, NpcEquipment, NpcPose, boolean, double, boolean, NamedTextColor, Consumer) - Constructor for record class com.cotani.npc.api.Npc
-
Creates an instance of a
Npcrecord class. - Npc.Builder - Class in com.cotani.npc.api
-
Fluent builder for
Npc. - NpcEquipment - Record Class in com.cotani.npc.api
-
Immutable representation of equipment worn and held by a virtual NPC.
- NpcEquipment(ItemStack, ItemStack, ItemStack, ItemStack, ItemStack, ItemStack) - Constructor for record class com.cotani.npc.api.NpcEquipment
-
Creates an instance of a
NpcEquipmentrecord class. - NpcEquipment.Builder - Class in com.cotani.npc.api
-
Builder for
NpcEquipment. - NpcInteractEvent - Record Class in com.cotani.npc.api
-
Event data passed when a player interacts with a virtual NPC.
- NpcInteractEvent(Player, Npc, EquipmentSlot, NpcInteractEvent.Action) - Constructor for record class com.cotani.npc.api.NpcInteractEvent
-
Creates an instance of a
NpcInteractEventrecord class. - NpcInteractEvent.Action - Enum Class in com.cotani.npc.api
-
Interaction action type.
- NpcModule - Interface in com.cotani.npc.api
-
Service contract for managing virtual player NPCs, packet rendering, look-at targeting, and click interactions.
- NpcPacketAdapter - Interface in com.cotani.npc.api
-
Pluggable adapter responsible for dispatching virtual NPC network packets (e.g.
- NpcPose - Enum Class in com.cotani.npc.api
-
Poses that can be assumed by a virtual NPC.
- NpcSkin - Record Class in com.cotani.npc.api
-
Immutable skin representation for a virtual NPC consisting of base64 texture value and signature.
- NpcSkin(String, String) - Constructor for record class com.cotani.npc.api.NpcSkin
-
Creates an instance of a
NpcSkinrecord class. - NpcSkinFetcher - Interface in com.cotani.npc.api
-
Service for asynchronously fetching player skins and Mojang texture signatures.
O
- of(String) - Static method in record class com.cotani.npc.api.NpcSkin
-
Creates an unsigned NpcSkin with texture value only.
- of(String, String) - Static method in record class com.cotani.npc.api.NpcSkin
-
Creates an NpcSkin with texture value and signature.
- offHand() - Method in record class com.cotani.npc.api.NpcEquipment
-
Returns the value of the
offHandrecord component. - offHand(ItemStack) - Method in class com.cotani.npc.api.NpcEquipment.Builder
- onInteract(Consumer) - Method in class com.cotani.npc.api.Npc.Builder
P
- player() - Method in record class com.cotani.npc.api.NpcInteractEvent
-
Returns the value of the
playerrecord component. - pose() - Method in record class com.cotani.npc.api.Npc
-
Returns the value of the
poserecord component. - pose(NpcPose) - Method in class com.cotani.npc.api.Npc.Builder
R
- refresh(Npc) - Method in interface com.cotani.npc.api.NpcModule
-
Refreshes an NPC for all online viewers.
- refreshAll() - Method in interface com.cotani.npc.api.NpcModule
-
Refreshes all active NPCs for all online viewers.
- RIGHT_CLICK - Enum constant in enum class com.cotani.npc.api.NpcInteractEvent.Action
-
Right-click / interact.
S
- sendDespawn(Player, Npc) - Method in interface com.cotani.npc.api.NpcPacketAdapter
- sendEquipment(Player, Npc) - Method in interface com.cotani.npc.api.NpcPacketAdapter
- sendRotation(Player, Npc, float, float) - Method in interface com.cotani.npc.api.NpcPacketAdapter
- sendSpawn(Player, Npc) - Method in interface com.cotani.npc.api.NpcPacketAdapter
- signature() - Method in record class com.cotani.npc.api.NpcSkin
-
Returns the value of the
signaturerecord component. - SITTING - Enum constant in enum class com.cotani.npc.api.NpcPose
-
Sitting pose.
- skin() - Method in record class com.cotani.npc.api.Npc
-
Returns the value of the
skinrecord component. - skin(NpcSkin) - Method in class com.cotani.npc.api.Npc.Builder
- skin(String) - Method in class com.cotani.npc.api.Npc.Builder
- skin(String, String) - Method in class com.cotani.npc.api.Npc.Builder
- skins() - Method in interface com.cotani.npc.api.NpcModule
-
Returns the skin fetcher service for resolving Mojang textures asynchronously.
- SLEEPING - Enum constant in enum class com.cotani.npc.api.NpcPose
-
Sleeping pose (lying down).
- spawn(Npc) - Method in interface com.cotani.npc.api.NpcModule
-
Spawns an NPC, making it visible to nearby players within its view distance.
- SPIN_ATTACK - Enum constant in enum class com.cotani.npc.api.NpcPose
-
Spinning riptide attack animation pose.
- STANDING - Enum constant in enum class com.cotani.npc.api.NpcPose
-
Standard standing upright pose.
- SWIMMING - Enum constant in enum class com.cotani.npc.api.NpcPose
-
Swimming horizontal glide pose.
T
- toBuilder() - Method in record class com.cotani.npc.api.Npc
-
Creates a new fluent
Npc.Builderpre-populated with this NPC's state. - toString() - Method in record class com.cotani.npc.api.Npc
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.npc.api.NpcEquipment
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.npc.api.NpcInteractEvent
-
Returns a string representation of this record class.
- toString() - Method in record class com.cotani.npc.api.NpcSkin
-
Returns a string representation of this record class.
U
- updateEquipment(UUID, NpcEquipment) - Method in interface com.cotani.npc.api.NpcModule
-
Updates an NPC's equipment and synchronizes equipment packets to viewers.
- updateLocation(UUID, Location) - Method in interface com.cotani.npc.api.NpcModule
-
Updates an NPC's position and synchronizes movement packets to viewers.
- updateSkin(UUID, NpcSkin) - Method in interface com.cotani.npc.api.NpcModule
-
Updates an NPC's skin and respawns it for viewers.
V
- value() - Method in record class com.cotani.npc.api.NpcSkin
-
Returns the value of the
valuerecord component. - valueOf(String) - Static method in enum class com.cotani.npc.api.NpcInteractEvent.Action
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.cotani.npc.api.NpcPose
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.cotani.npc.api.NpcInteractEvent.Action
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.cotani.npc.api.NpcPose
-
Returns an array containing the constants of this enum class, in the order they are declared.
- viewDistance() - Method in record class com.cotani.npc.api.Npc
-
Returns the value of the
viewDistancerecord component. - viewDistance(double) - Method in class com.cotani.npc.api.Npc.Builder
All Classes and Interfaces|All Packages|Constant Field Values