Package com.github.juliarn.npclib.api
Interface Npc<W,P,I,E>
- All Superinterfaces:
NpcFlaggedObject
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescription -
Method Summary
Modifier and TypeMethodDescriptionaddIncludedPlayer(P player) @NotNull NpcSpecificOutboundPacket<W, P, I, E> changeItem(@NotNull ItemSlot slot, I item) <T,O> @NotNull NpcSpecificOutboundPacket <W, P, I, E> changeMetadata(@NotNull EntityMetadataFactory<T, O> metadata, T value) intentityId()forceTrackPlayer(P player) @UnmodifiableView @NotNull Collection<P> booleanincludesPlayer(P player) @NotNull NpcSpecificOutboundPacket<W, P, I, E> @NotNull NpcTracker<W, P, I, E> platform()@NotNull NpcSpecificOutboundPacket<W, P, I, E> playAnimation(@NotNull EntityAnimation animation) @NotNull Positionposition()profile()removeIncludedPlayer(P player) @NotNull NpcSpecificOutboundPacket<W, P, I, E> rotate(float yaw, float pitch) @NotNull NpcSettings<P> settings()booleanshouldIncludePlayer(P player) stopTrackingPlayer(P player) @UnmodifiableView @NotNull Collection<P> trackPlayer(P player) booleantracksPlayer(P player) unlink()world()Methods inherited from interface com.github.juliarn.npclib.api.flag.NpcFlaggedObject
flagValue, flagValue, flagValueOrDefault
-
Field Details
-
LOOK_AT_PLAYER
-
HIT_WHEN_PLAYER_HITS
-
SNEAK_WHEN_PLAYER_SNEAKS
-
-
Method Details
-
entityId
int entityId() -
profile
-
world
-
position
-
settings
-
platform
-
npcTracker
-
shouldIncludePlayer
-
includedPlayers
-
includesPlayer
-
addIncludedPlayer
-
removeIncludedPlayer
-
unlink
-
trackedPlayers
-
tracksPlayer
-
trackPlayer
-
forceTrackPlayer
-
stopTrackingPlayer
-
rotate
-
lookAt
-
playAnimation
@NotNull @NotNull NpcSpecificOutboundPacket<W,P, playAnimationI, E> (@NotNull @NotNull EntityAnimation animation) -
changeItem
-
changeMetadata
@NotNull <T,O> @NotNull NpcSpecificOutboundPacket<W,P, changeMetadataI, E> (@NotNull @NotNull EntityMetadataFactory<T, O> metadata, @NotNull T value)
-