public interface WrappedEntity
Values are reset each time Journeymap refreshes the entity cache.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
getAggro()
If the entity is aggro toward the player
|
net.minecraft.world.level.biome.Biome |
getBiome()
Gets the entity's biome.
|
net.minecraft.core.BlockPos |
getChunkPos()
The chunk position of the entity.
|
int |
getColor()
Gets the color of the icon displayed on the map.
|
net.minecraft.network.chat.Component |
getCustomName()
The entity's custom name.
|
net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> |
getDimension()
The dimension where the entity is located.
|
net.minecraft.resources.ResourceLocation |
getEntityIconLocation()
The icon resource location.
|
java.lang.String |
getEntityId()
The entity id, typically a UUID string.
|
java.lang.ref.WeakReference<net.minecraft.world.entity.Entity> |
getEntityRef()
This is a weak reference to the Entity, setting any values on this entity will not change how
journeymap displays or interacts with the entity.
|
java.util.List<net.minecraft.network.chat.Component> |
getEntityToolTips()
Gets the current entity tooltip
|
double |
getHeading()
The heading of the entity.
|
java.lang.Boolean |
getHostile()
If the entity is hostile
|
int |
getLabelColor()
Gets the label color of the icon displayed on the map.
|
net.minecraft.world.entity.Entity |
getOwner()
The owner Entity if the Entity is tamed.
|
java.lang.String |
getPlayerName()
The player's name if the entity is a player.
|
net.minecraft.world.phys.Vec3 |
getPosition()
The position of the entity.
|
java.lang.String |
getProfession()
The profession of the npc.
|
int |
getTeamColor()
The color applied to the team-name label for players.
|
java.lang.Boolean |
getUnderground()
Is the entity is a player and underground
|
boolean |
isAmbientCreature()
Is entity an ambient creature.
|
boolean |
isDisabled()
Is the entity disabled from being drawn on the map.
|
boolean |
isInvisible()
Is entity invisible to the current player.
|
boolean |
isNpc()
Is entity an npc
|
boolean |
isPassiveAnimal()
Is entity a passive animal
|
boolean |
isSneaking()
Is entity sneaking
|
void |
setColor(int color)
Sets the icon color of the dot when the user has the display set to dots.
|
void |
setCustomName(net.minecraft.network.chat.Component customName)
Sets the custom name of the entity.
|
void |
setCustomName(java.lang.String customName)
Sets the custom name of the entity.
|
void |
setDisable(boolean disable)
Disables the entity from being drawn on the map.
|
void |
setDrawOutline(boolean drawOutline)
When setting a custom image via `setEntityIconLocation` if you want to disable the outline when users have their
entity icons drawing outlines.
|
void |
setEntityIconLocation(net.minecraft.resources.ResourceLocation entityIconLocation)
Set the icon location for the entity.
|
void |
setEntityToolTips(java.util.List<net.minecraft.network.chat.Component> entityToolTips)
Sets the entity tooltip.
|
void |
setLabelColor(int color)
Sets the label color for the entity.
|
void |
setTeamColor(int teamColor)
Sets the color applied to the team-name label for players.
|
java.lang.ref.WeakReference<net.minecraft.world.entity.Entity> getEntityRef()
java.lang.String getEntityId()
@Nullable net.minecraft.resources.ResourceLocation getEntityIconLocation()
java.lang.Boolean getHostile()
java.lang.Boolean getAggro()
net.minecraft.world.phys.Vec3 getPosition()
net.minecraft.core.BlockPos getChunkPos()
double getHeading()
@Nullable net.minecraft.network.chat.Component getCustomName()
int getTeamColor()
setTeamColor(int) from an addon (e.g. a teams
integration) to recolor the team line independent of getLabelColor().@Nullable net.minecraft.world.entity.Entity getOwner()
@Nullable java.lang.String getProfession()
@Nullable java.lang.String getPlayerName()
@Nullable net.minecraft.world.level.biome.Biome getBiome()
net.minecraft.resources.ResourceKey<net.minecraft.world.level.Level> getDimension()
@Nullable java.lang.Boolean getUnderground()
boolean isInvisible()
boolean isSneaking()
boolean isPassiveAnimal()
boolean isAmbientCreature()
boolean isNpc()
int getColor()
int getLabelColor()
boolean isDisabled()
@Nullable java.util.List<net.minecraft.network.chat.Component> getEntityToolTips()
void setEntityToolTips(@Nullable
java.util.List<net.minecraft.network.chat.Component> entityToolTips)
entityToolTips - - The tooltip listvoid setEntityIconLocation(net.minecraft.resources.ResourceLocation entityIconLocation)
entityIconLocation - - the resource location of the icon.void setCustomName(net.minecraft.network.chat.Component customName)
customName - - the custom name Component.void setCustomName(java.lang.String customName)
customName - - the custom name value.void setTeamColor(int teamColor)
teamColor - - the team-line color as an ARGB int.void setLabelColor(int color)
color - - the color.void setColor(int color)
color - - the color.void setDisable(boolean disable)
disable - - the disable.void setDrawOutline(boolean drawOutline)
drawOutline - - to draw the icons outlines.