Package net.citizensnpcs.trait
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 SummaryFields inherited from class net.citizensnpcs.trait.HologramTrait.SingleEntityHologramRendererhologram, text
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected 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 net.citizensnpcs.trait.HologramTrait.SingleEntityHologramRenderergetPerPlayerText, registry, render, setRegistry, setViewRange, spawnHologramMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.citizensnpcs.trait.HologramTrait.HologramRendererisSneaking, onSeenByPlayer, setBackgroundColor, setTextShadow
- 
Constructor Details- 
ItemRendererpublic ItemRenderer()
 
- 
- 
Method Details- 
createNPC- Specified by:
- createNPCin class- HologramTrait.SingleEntityHologramRenderer
 
- 
destroypublic void destroy()Description copied from interface:HologramTrait.HologramRendererDestroy/teardown any rendered holograms.- Specified by:
- destroyin interface- HologramTrait.HologramRenderer
- Overrides:
- destroyin class- HologramTrait.SingleEntityHologramRenderer
 
- 
getEntitiesDescription copied from interface:HologramTrait.HologramRendererGets hologram entities associated with the Hologram Trait.- Specified by:
- getEntitiesin interface- HologramTrait.HologramRenderer
- Overrides:
- getEntitiesin class- HologramTrait.SingleEntityHologramRenderer
- Returns:
- Any associated hologram entities.
 
- 
render0Description copied from class:HologramTrait.SingleEntityHologramRendererHologram spawning is delegated toHologramTrait.SingleEntityHologramRenderer.createNPC(NPC, String, Vector3d)- Specified by:
- render0in class- HologramTrait.SingleEntityHologramRenderer
 
- 
updateTextDescription copied from interface:HologramTrait.HologramRendererUpdate the hologram text. Will be called first beforeHologramTrait.HologramRenderer.render(NPC, Vector3d).- Specified by:
- updateTextin interface- HologramTrait.HologramRenderer
- Overrides:
- updateTextin class- HologramTrait.SingleEntityHologramRenderer
- Parameters:
- npc- the parent NPC
- text- the new hologram text
 
 
-