Class HologramTrait.ItemRenderer
java.lang.Object
net.citizensnpcs.trait.HologramTrait.SingleEntityHologramRenderer
net.citizensnpcs.trait.HologramTrait.ItemRenderer
- All Implemented Interfaces:
HologramTrait.HologramRenderer
- Enclosing class:
HologramTrait
-
Field Summary
Fields inherited from class HologramTrait.SingleEntityHologramRenderer
hologram, text -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()protected NPCvoiddestroy()Destroy/teardown any rendered holograms.Gets hologram entities associated with the Hologram Trait.protected voidHologram spawning is delegated toHologramTrait.SingleEntityHologramRenderer.createNPC(NPC, String, Vector3d)voidupdateText(NPC npc, String text) Update the hologram text.Methods inherited from class HologramTrait.SingleEntityHologramRenderer
getPerPlayerText, getTemplateNPC, registry, render, setRegistry, setViewRange, spawnHologramMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HologramTrait.HologramRenderer
isSneaking, onSeenByPlayer
-
Constructor Details
-
ItemRenderer
public ItemRenderer()
-
-
Method Details
-
copy
-
createNPC
- Specified by:
createNPCin classHologramTrait.SingleEntityHologramRenderer
-
destroy
public void destroy()Description copied from interface:HologramTrait.HologramRendererDestroy/teardown any rendered holograms.- Specified by:
destroyin interfaceHologramTrait.HologramRenderer- Overrides:
destroyin classHologramTrait.SingleEntityHologramRenderer
-
getEntities
Description copied from interface:HologramTrait.HologramRendererGets hologram entities associated with the Hologram Trait.- Specified by:
getEntitiesin interfaceHologramTrait.HologramRenderer- Overrides:
getEntitiesin classHologramTrait.SingleEntityHologramRenderer- Returns:
- Any associated hologram entities.
-
render0
Description copied from class:HologramTrait.SingleEntityHologramRendererHologram spawning is delegated toHologramTrait.SingleEntityHologramRenderer.createNPC(NPC, String, Vector3d)- Specified by:
render0in classHologramTrait.SingleEntityHologramRenderer
-
updateText
Description copied from interface:HologramTrait.HologramRendererUpdate the hologram text. Will be called first beforeHologramTrait.HologramRenderer.render(NPC, Vector3d).- Specified by:
updateTextin interfaceHologramTrait.HologramRenderer- Overrides:
updateTextin classHologramTrait.SingleEntityHologramRenderer- Parameters:
npc- the parent NPCtext- the new hologram text
-