java.lang.Object
com.github.retrooper.packetevents.protocol.npc.NPC

public class NPC extends Object
  • Constructor Details

    • NPC

      public NPC(UserProfile profile, int entityId, GameMode gamemode, @Nullable @Nullable net.kyori.adventure.text.Component tabName, @Nullable @Nullable net.kyori.adventure.text.format.NamedTextColor nameColor, @Nullable @Nullable net.kyori.adventure.text.Component prefixName, @Nullable @Nullable net.kyori.adventure.text.Component suffixName)
    • NPC

      public NPC(UserProfile profile, int entityId, @Nullable @Nullable net.kyori.adventure.text.Component tabName)
    • NPC

      public NPC(UserProfile profile, int entityId)
  • Method Details

    • hasSpawned

      public boolean hasSpawned(Object channel)
    • spawn

      public void spawn(Object channel)
    • despawn

      public void despawn(Object channel)
    • despawnAll

      public void despawnAll()
    • teleport

      public void teleport(Location to)
    • updateLocation

      public void updateLocation(Location to)
    • updateRotation

      public void updateRotation(float yaw, float pitch)
    • updateTabPing

      public void updateTabPing(int ping)
    • updateGameMode

      public void updateGameMode(GameMode gamemode)
    • changeSkin

      public void changeSkin(UUID skinUUID, List<TextureProperty> skinTextureProperties)
    • updateNameTag

      public void updateNameTag()
    • updateEquipment

      public void updateEquipment()
    • getMainHand

      public ItemStack getMainHand()
    • setMainHand

      public void setMainHand(ItemStack mainHand)
    • getOffHand

      public ItemStack getOffHand()
    • setOffHand

      public void setOffHand(ItemStack offHand)
    • getHelmet

      public ItemStack getHelmet()
    • setHelmet

      public void setHelmet(ItemStack helmet)
    • getChestplate

      public ItemStack getChestplate()
    • setChestplate

      public void setChestplate(ItemStack chestPlate)
    • getLeggings

      public ItemStack getLeggings()
    • setLeggings

      public void setLeggings(ItemStack leggings)
    • getBoots

      public ItemStack getBoots()
    • setBoots

      public void setBoots(ItemStack boots)
    • getNameColor

      @Nullable public @Nullable net.kyori.adventure.text.format.NamedTextColor getNameColor()
    • setNameColor

      public void setNameColor(@Nullable @Nullable net.kyori.adventure.text.format.NamedTextColor nameColor)
    • getPrefixName

      @Nullable public @Nullable net.kyori.adventure.text.Component getPrefixName()
    • setPrefixName

      public void setPrefixName(@Nullable @Nullable net.kyori.adventure.text.Component namePrefix)
    • getSuffixName

      @Nullable public @Nullable net.kyori.adventure.text.Component getSuffixName()
    • setSuffixName

      public void setSuffixName(@Nullable @Nullable net.kyori.adventure.text.Component nameSuffix)
    • getTeamName

      public String getTeamName()
    • setTeamName

      public void setTeamName(String teamName)
    • getTabName

      @Nullable public @Nullable net.kyori.adventure.text.Component getTabName()
    • setTabName

      public void setTabName(@Nullable @Nullable net.kyori.adventure.text.Component tabName)
    • getId

      public int getId()
    • getProfile

      public UserProfile getProfile()
    • getGameMode

      public GameMode getGameMode()
    • setGameMode

      public void setGameMode(GameMode gamemode)
    • getLegacyPlayerInfoData

      public WrapperPlayServerPlayerInfo.PlayerData getLegacyPlayerInfoData()
    • getModernPlayerInfoData

      public WrapperPlayServerPlayerInfoUpdate.PlayerInfo getModernPlayerInfoData()
    • getDisplayPing

      public int getDisplayPing()
    • setDisplayPing

      public void setDisplayPing(int ping)
    • getLocation

      public Location getLocation()
    • setLocation

      public void setLocation(Location location)
    • getChannels

      public Set<Object> getChannels()