Package net.citizensnpcs.trait
Class HologramTrait.InteractionVehicleRenderer
java.lang.Object
net.citizensnpcs.trait.HologramTrait.SingleEntityHologramRenderer
net.citizensnpcs.trait.HologramTrait.InteractionVehicleRenderer
- All Implemented Interfaces:
HologramTrait.HologramRenderer
- Enclosing class:
HologramTrait
public static class HologramTrait.InteractionVehicleRenderer
extends HologramTrait.SingleEntityHologramRenderer
-
Field Summary
Fields inherited from class net.citizensnpcs.trait.HologramTrait.SingleEntityHologramRenderer
hologram, text
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected NPC
void
onSeenByPlayer
(NPC npc, Player player) Ifinvalid reference
NPC.Metadata.HOLOGRAM_RENDERER
void
Hologram spawning is delegated toHologramTrait.SingleEntityHologramRenderer.createNPC(Entity, String, Vector3d)
Methods inherited from class net.citizensnpcs.trait.HologramTrait.SingleEntityHologramRenderer
destroy, getEntities, getPerPlayerText, registry, render, setRegistry, setViewRange, spawnHologram, updateText
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.citizensnpcs.trait.HologramTrait.HologramRenderer
isSneaking, setBackgroundColor, setTextShadow
-
Constructor Details
-
InteractionVehicleRenderer
public InteractionVehicleRenderer()
-
-
Method Details
-
createNPC
- Specified by:
createNPC
in classHologramTrait.SingleEntityHologramRenderer
-
onSeenByPlayer
Description copied from interface:HologramTrait.HologramRenderer
Ifinvalid reference
NPC.Metadata.HOLOGRAM_RENDERER
- Parameters:
npc
- the hologram NPCplayer
- the viewing Player
-
render0
Description copied from class:HologramTrait.SingleEntityHologramRenderer
Hologram spawning is delegated toHologramTrait.SingleEntityHologramRenderer.createNPC(Entity, String, Vector3d)
- Specified by:
render0
in classHologramTrait.SingleEntityHologramRenderer
-