Package com.maximde.hologramlib.hologram
Class ItemHologram
java.lang.Object
com.maximde.hologramlib.hologram.Hologram<ItemHologram>
com.maximde.hologramlib.hologram.ItemHologram
-
Nested Class Summary
Nested classes/interfaces inherited from class com.maximde.hologramlib.hologram.Hologram
Hologram.Internal
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected me.tofaa.entitylib.meta.display.ItemDisplayMeta.DisplayType
protected int
Only visible if 'ItemHologram#glowing' is set to trueprotected boolean
protected com.github.retrooper.packetevents.protocol.item.ItemStack
protected boolean
Fields inherited from class com.maximde.hologramlib.hologram.Hologram
billboard, dead, entity, entityID, entityType, id, interpolationDurationTransformation, leftRotation, location, maxPlayerRenderDistanceSquared, renderMode, rightRotation, scale, task, teleportDuration, translation, updateTaskPeriod, viewRange
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected me.tofaa.entitylib.meta.EntityMeta
protected ItemHologram
copy()
protected ItemHologram
setGlowColor
(Color color) Sets the RGB color for the item's glow effect.Methods inherited from class com.maximde.hologramlib.hologram.Hologram
addAllViewers, addPassenger, addViewer, attach, getInterpolationDurationRotation, getPassengers, getScale, getTranslation, getViewers, getViewerUUIDs, kill, removeAllViewers, removeViewer, self, sendPacket, setBillboard, setInterpolationDurationRotation, setInterpolationDurationTransformation, setLeftRotation, setMaxPlayerRenderDistanceSquared, setRightRotation, setScale, setScale, setTeleportDuration, setTranslation, setTranslation, setUpdateTaskPeriod, setViewRange, teleport, toVector3f, update, validateId
-
Field Details
-
displayType
protected me.tofaa.entitylib.meta.display.ItemDisplayMeta.DisplayType displayType -
onFire
protected boolean onFire -
item
protected com.github.retrooper.packetevents.protocol.item.ItemStack item -
glowing
protected boolean glowing -
glowColor
protected int glowColorOnly visible if 'ItemHologram#glowing' is set to true
-
-
Constructor Details
-
ItemHologram
-
ItemHologram
-
-
Method Details
-
setGlowColor
Sets the RGB color for the item's glow effect. (The color can be wrong if server version is below 1.20.5) Only applies when glowing is set to true. -
applyMeta
protected me.tofaa.entitylib.meta.EntityMeta applyMeta()- Specified by:
applyMeta
in classHologram<ItemHologram>
-
copy
- Specified by:
copy
in classHologram<ItemHologram>
-
copy
- Specified by:
copy
in classHologram<ItemHologram>
-