EntityHideOption

Configuration for hiding various visual aspects of an entity.

This record allows selective hiding of equipment, fire effects, the entity body itself, and glowing effects.

Since

1.15.2

Parameters

equipment

whether to hide equipment

fire

whether to hide burning state

visibility

whether to hide entity's body

glowing

whether to hide entity's glowing state

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class Builder
Builder for EntityHideOption.

Properties

Link copied to clipboard
Default option (hides everything).
Link copied to clipboard
Disabled option (hides nothing).

Functions

Link copied to clipboard
@NotNull
open fun builder(): @NotNull EntityHideOption.Builder
Creates a new builder for EntityHideOption.
Link copied to clipboard
@NotNull
open fun composite(@NotNull options: @NotNull Stream<EntityHideOption>): @NotNull EntityHideOption
Composites multiple options into a single one using OR logic.
Link copied to clipboard
@NotNull
open fun deserialize(@NotNull array: @NotNull JsonArray): @NotNull EntityHideOption
Deserializes hide option from a JSON array.
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
@NotNull
open fun serialize(): @NotNull JsonArray
Serializes hide option to a JSON array.
Link copied to clipboard
abstract fun toString(): String