Holograms
Namespace Mc.Scripting · Kind class (sealed)
public sealed class HologramsCreates holograms for this plugin. Everything made here is removed when the plugin unloads.
Methods
Section titled “Methods”| Member | Description |
|---|---|
Create |
Creates a hologram that everybody sees. |
Create |
Creates a hologram from plain lines (one per line of text). |
Create
Section titled “Create”public Hologram Create(World world, Vec3d position, Component text, HologramOptions? options = null)Creates a hologram that everybody sees.
Parameters
| Name | Type | Description |
|---|---|---|
world |
World |
The world. |
position |
Vec3d |
Where the text is. |
text |
Component |
The text (a newline makes a line break). |
options |
HologramOptions? = null |
The look; null for the defaults. |
Returns Hologram: The hologram.
Throws
System.ArgumentException: The text or the options are out of the engine’s limits.System.InvalidOperationException: The engine refused the hologram (the world, or the server’s visual limit).
Create
Section titled “Create”public Hologram Create(World world, Vec3d position, IEnumerable<string> lines, HologramOptions? options = null)Creates a hologram from plain lines (one per line of text).
Parameters
| Name | Type | Description |
|---|---|---|
world |
World |
The world. |
position |
Vec3d |
Where the text is. |
lines |
IEnumerable<string> |
The lines. |
options |
HologramOptions? = null |
The look; null for the defaults. |
Returns Hologram: The hologram.
See also
Section titled “See also”Component · Hologram · HologramOptions · Vec3d · World