Class NPC
java.lang.Object
com.github.retrooper.packetevents.protocol.npc.NPC
-
Constructor Summary
ConstructorDescriptionNPC
(UserProfile profile, int entityId) 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) NPC
(UserProfile profile, int entityId, @Nullable net.kyori.adventure.text.Component tabName) -
Method Summary
Modifier and TypeMethodDescriptionvoid
changeSkin
(UUID skinUUID, List<TextureProperty> skinTextureProperties) void
void
getBoots()
int
int
getId()
@Nullable net.kyori.adventure.text.format.NamedTextColor
@Nullable net.kyori.adventure.text.Component
@Nullable net.kyori.adventure.text.Component
@Nullable net.kyori.adventure.text.Component
boolean
hasSpawned
(Object channel) void
void
setChestplate
(ItemStack chestPlate) void
setDisplayPing
(int ping) void
setGameMode
(GameMode gamemode) void
void
setLeggings
(ItemStack leggings) void
setLocation
(Location location) void
setMainHand
(ItemStack mainHand) void
setNameColor
(@Nullable net.kyori.adventure.text.format.NamedTextColor nameColor) void
setOffHand
(ItemStack offHand) void
setPrefixName
(@Nullable net.kyori.adventure.text.Component namePrefix) void
setSuffixName
(@Nullable net.kyori.adventure.text.Component nameSuffix) void
setTabName
(@Nullable net.kyori.adventure.text.Component tabName) void
setTeamName
(String teamName) void
void
void
void
updateGameMode
(GameMode gamemode) void
void
void
updateRotation
(float yaw, float pitch) void
updateTabPing
(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) -
getTeamName
-
setTeamName
-
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
-