Skip to content

Holograms

Namespace Mc.Scripting · Kind class (sealed)

public sealed class Holograms

Creates holograms for this plugin. Everything made here is removed when the plugin unloads.

Member Description
Create Creates a hologram that everybody sees.
Create Creates a hologram from plain lines (one per line of text).
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).
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.

Component · Hologram · HologramOptions · Vec3d · World