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 com.github.retrooper.packetevents.protocol.item.ItemStack
protected boolean
Fields inherited from class com.maximde.hologramlib.hologram.Hologram
attachedEntityId, billboard, brightness, dead, entity, entityID, entityType, glowColor, glowing, id, interpolationDurationTransformation, isInvisible, 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
setPlayerHead
(UUID uuid) Sets the item to a player head using the given UUID.Methods inherited from class com.maximde.hologramlib.hologram.Hologram
addAllViewers, addElement, addPassenger, addToViewerBlacklist, addViewer, attach, attachToPlayer, detach, getInterpolationDurationRotation, getPassengers, getRotation, getScale, getTranslation, getViewers, getViewerUUIDs, hide, kill, removeAllViewers, removeElement, removeFromViewerBlacklist, removeViewer, self, sendPacket, setBillboard, setBrightness, setBrightness, setBrightness, setGlowColor, setGlowing, setInterpolationDurationRotation, setInterpolationDurationTransformation, setIsInvisible, setLeftRotation, setMaxPlayerRenderDistanceSquared, setRenderMode, setRightRotation, setRotation, setScale, setScale, setTeleportDuration, setTransformation, setTransformationMatrix, setTranslation, setTranslation, setUpdateTaskPeriod, setViewRange, show, 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
-
-
Constructor Details
-
ItemHologram
-
ItemHologram
-
-
Method Details
-
applyMeta
protected me.tofaa.entitylib.meta.EntityMeta applyMeta()- Specified by:
applyMeta
in classHologram<ItemHologram>
-
setPlayerHead
Sets the item to a player head using the given UUID. The head will automatically glow and be scaled to fit a hologram display.- Parameters:
uuid
- The UUID of the player whose skin to use.- Returns:
- this (for chaining)
-
copy
- Specified by:
copy
in classHologram<ItemHologram>
-
copy
- Specified by:
copy
in classHologram<ItemHologram>
-