primary
public boolean primary()
Returns the value of the
primary record component.- Returns:
- the value of the
primaryrecord component
index - 1-based chest indexsize - slot count (multiple of 9, 9..54)customName - player-chosen name, or null for the default numbered titleprimary - true if this is the chest that /ec and right-click openkind - whether this is a normal or a temporary (overflow) chestexpiresAt - epoch millis when this chest expires, or null if it never expires
(drives the static "time remaining" snapshot shown in the dialog)icon - material key of the player-chosen icon (e.g. minecraft:diamond),
or null for the default ender-chest icon; rendered next to the name in the
list dialog as an Adventure sprite object componentChestSummary(int index,
int size,
@Nullable String customName,
boolean primary,
ChestKind kind,
@Nullable Long expiresAt,
@Nullable String icon) ChestSummary record class.@Nullable StringcustomName record component.final boolean@Nullable LongexpiresAt record component.final inthashCode()@Nullable Stringicon()icon record component.intindex()index record component.kind()kind record component.booleanprimary()primary record component.intsize()size record component.final StringtoString()ChestSummary record class.index - the value for the index record componentsize - the value for the size record componentcustomName - the value for the customName record componentprimary - the value for the primary record componentkind - the value for the kind record componentexpiresAt - the value for the expiresAt record componenticon - the value for the icon record componentObjects::equals(Object,Object); primitive components are compared with '=='.index record component.index record componentsize record component.size record componentcustomName record component.customName record componentprimary record component.primary record componentkind record component.kind record componentexpiresAt record component.expiresAt record componenticon record component.icon record component