Class NPC
java.lang.Object
com.github.retrooper.packetevents.protocol.npc.NPC
-
Constructor Summary
ConstructorsConstructorDescriptionNPC(UserProfile profile, int entityId) NPC(UserProfile profile, int entityId, @Nullable net.kyori.adventure.text.Component tabName) NPC(UserProfile profile, int entityId, GameMode gamemode, @Nullable net.kyori.adventure.text.Component tabName, @Nullable net.kyori.adventure.text.format.NamedTextColor nameColor, @Nullable net.kyori.adventure.text.Component prefixName, @Nullable net.kyori.adventure.text.Component suffixName) -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeSkin(UUID skinUUID, List<TextureProperty> skinTextureProperties) voidvoidgetBoots()intintgetId()@Nullable net.kyori.adventure.text.format.NamedTextColor@Nullable net.kyori.adventure.text.Component@Nullable net.kyori.adventure.text.Component@Nullable net.kyori.adventure.text.ComponentbooleanhasSpawned(Object channel) voidvoidsetChestplate(ItemStack chestPlate) voidsetDisplayPing(int ping) voidsetGameMode(GameMode gamemode) voidvoidsetLeggings(ItemStack leggings) voidsetLocation(Location location) voidsetMainHand(ItemStack mainHand) voidsetNameColor(@Nullable net.kyori.adventure.text.format.NamedTextColor nameColor) voidsetOffHand(ItemStack offHand) voidsetPrefixName(@Nullable net.kyori.adventure.text.Component namePrefix) voidsetSuffixName(@Nullable net.kyori.adventure.text.Component nameSuffix) voidsetTabName(@Nullable net.kyori.adventure.text.Component tabName) voidvoidvoidvoidupdateGameMode(GameMode gamemode) voidvoidvoidupdateRotation(float yaw, float pitch) voidupdateTabPing(int ping)
-
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
-
-
Method Details
-
hasSpawned
-
spawn
-
despawn
-
despawnAll
public void despawnAll() -
teleport
-
updateLocation
-
updateRotation
public void updateRotation(float yaw, float pitch) -
updateTabPing
public void updateTabPing(int ping) -
updateGameMode
-
changeSkin
-
updateNameTag
public void updateNameTag() -
updateEquipment
public void updateEquipment() -
getMainHand
-
setMainHand
-
getOffHand
-
setOffHand
-
getHelmet
-
setHelmet
-
getChestplate
-
setChestplate
-
getLeggings
-
setLeggings
-
getBoots
-
setBoots
-
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) -
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
-
getGameMode
-
setGameMode
-
getLegacyPlayerInfoData
-
getModernPlayerInfoData
-
getDisplayPing
public int getDisplayPing() -
setDisplayPing
public void setDisplayPing(int ping) -
getLocation
-
setLocation
-
getChannels
-