Interface Npc<W,P,I,E>

All Superinterfaces:
NpcFlaggedObject

public interface Npc<W,P,I,E> extends NpcFlaggedObject
  • Field Details

    • LOOK_AT_PLAYER

      static final NpcFlag<Boolean> LOOK_AT_PLAYER
    • HIT_WHEN_PLAYER_HITS

      static final NpcFlag<Boolean> HIT_WHEN_PLAYER_HITS
    • SNEAK_WHEN_PLAYER_SNEAKS

      static final NpcFlag<Boolean> SNEAK_WHEN_PLAYER_SNEAKS
  • Method Details

    • entityId

      int entityId()
    • profile

      @NotNull Profile.Resolved profile()
    • world

      @NotNull W world()
    • position

      @NotNull @NotNull Position position()
    • settings

      @NotNull @NotNull NpcSettings<P> settings()
    • platform

      @NotNull @NotNull Platform<W,P,I,E> platform()
    • npcTracker

      @NotNull @NotNull NpcTracker<W,P,I,E> npcTracker()
    • shouldIncludePlayer

      boolean shouldIncludePlayer(@NotNull P player)
    • includedPlayers

      @NotNull @UnmodifiableView @NotNull Collection<P> includedPlayers()
    • includesPlayer

      boolean includesPlayer(@NotNull P player)
    • addIncludedPlayer

      @NotNull @NotNull Npc<W,P,I,E> addIncludedPlayer(@NotNull P player)
    • removeIncludedPlayer

      @NotNull @NotNull Npc<W,P,I,E> removeIncludedPlayer(@NotNull P player)
    • unlink

      @NotNull @NotNull Npc<W,P,I,E> unlink()
    • trackedPlayers

      @NotNull @UnmodifiableView @NotNull Collection<P> trackedPlayers()
    • tracksPlayer

      boolean tracksPlayer(@NotNull P player)
    • trackPlayer

      @NotNull @NotNull Npc<W,P,I,E> trackPlayer(@NotNull P player)
    • forceTrackPlayer

      @NotNull @NotNull Npc<W,P,I,E> forceTrackPlayer(@NotNull P player)
    • stopTrackingPlayer

      @NotNull @NotNull Npc<W,P,I,E> stopTrackingPlayer(@NotNull P player)
    • rotate

      @NotNull @NotNull NpcSpecificOutboundPacket<W,P,I,E> rotate(float yaw, float pitch)
    • lookAt

      @NotNull @NotNull NpcSpecificOutboundPacket<W,P,I,E> lookAt(@NotNull @NotNull Position position)
    • playAnimation

      @NotNull @NotNull NpcSpecificOutboundPacket<W,P,I,E> playAnimation(@NotNull @NotNull EntityAnimation animation)
    • changeItem

      @NotNull @NotNull NpcSpecificOutboundPacket<W,P,I,E> changeItem(@NotNull @NotNull ItemSlot slot, @NotNull I item)
    • changeMetadata

      @NotNull <T, O> @NotNull NpcSpecificOutboundPacket<W,P,I,E> changeMetadata(@NotNull @NotNull EntityMetadataFactory<T,O> metadata, @NotNull T value)