Interface ObjectComponent

All Superinterfaces:
Buildable<ObjectComponent,ObjectComponent.Builder>, BuildableComponent<ObjectComponent,ObjectComponent.Builder>, Component, ComponentBuilderApplicable, ComponentLike, net.kyori.examination.Examinable, HoverEventSource<Component>, ScopedComponent<ObjectComponent>, StyleGetter, StyleSetter<Component>

Displays a non-text object.
Since:
4.25.0
Since Minecraft:
1.21.9
  • Method Details

    • contents

      @NotNull @NotNull ObjectContents contents()
      Gets the contents of this object component.
      Returns:
      the contents
      Since:
      4.25.0
    • contents

      @NotNull @NotNull ObjectComponent contents(@NotNull @NotNull ObjectContents contents)
      Creates a copy of this object component with the given contents.
      Parameters:
      contents - the contents to set
      Returns:
      new object component
      Since:
      4.25.0
    • examinableProperties

      @NotNull default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()
      Specified by:
      examinableProperties in interface Component
      Specified by:
      examinableProperties in interface net.kyori.examination.Examinable