Class TicketTypes
java.lang.Object
org.spongepowered.api.world.server.TicketTypes
Types of
tickets
that can be requested via the
ChunkManager
.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DefaultedRegistryReference<TicketType<Vector3i>>
static final DefaultedRegistryReference<TicketType<Entity>>
static final DefaultedRegistryReference<TicketType<Vector3i>>
-
Method Summary
-
Field Details
-
STANDARD
Representstickets
that ensures the targetchunks
are loaded, but are not guaranteed to be loaded at any time in the future, that is, the lifetime of such a ticket is effectively onetick
.The position represented by the
Vector3i
is a chunk position, not a block position, so when requesting a ticket usingChunkManager.requestTicket(TicketType, Vector3i, Object, int)
, the second and third parameter should be the same. -
PORTAL
Representstickets
that are intended to ensure that the targetchunks
around aPortal
are loaded, ready to acceptentities
that travel through it.The position represented by the
Vector3i
is a block position, specifically, it is intended it is that of the exit point of a portal. When requesting a ticket usingChunkManager.requestTicket(TicketType, Vector3i, Object, int)
, the second parameter represents a chunk position, the third parameter represents a block position. -
POST_TELEPORT
-
-
Method Details
-
registry
-