BookProperties

public final class BookProperties implements ICommonProperties, IBookProperties(source)

Implementation of IBookProperties for book items.

Constructors

Link copied to clipboard
public BookProperties BookProperties(ICommonProperties commonProperties, Integer currentPage, Integer pageCount)

Properties

Link copied to clipboard
private final Integer currentPage

Current page of the book.

Link copied to clipboard
private final Integer pageCount

Number of pages in the book.

Inherited properties

Link copied to clipboard
private final Identifier biome

Biome the container is in.

Link copied to clipboard
private final LocalDate date

The current date.

Link copied to clipboard
private final Integer height

Y-coordinate of the container.

Link copied to clipboard
private final String name

Custom container name (renamed with an anvil or with a name tag).

Functions

Link copied to clipboard

Current page of the book.

Link copied to clipboard

Number of pages in the book.

Link copied to clipboard
public Unit writeSelectors(BiConsumer<String, String> appendSelector)

Inherited functions

Link copied to clipboard

Biome the container is in.

Link copied to clipboard
public LocalDate getDate()

The current date.

Link copied to clipboard
public Integer getHeight()

Y-coordinate of the container.

Link copied to clipboard
public String getName()

Custom container name (renamed with an anvil or with a name tag).