Class TicketTypes
- java.lang.Object
-
- org.spongepowered.api.world.server.TicketTypes
-
public final class TicketTypes extends Object
Types oftickets
that can be requested via theChunkManager
.
-
-
Field Summary
Fields Modifier and Type Field Description static DefaultedRegistryReference<TicketType<Vector3i>>
PORTAL
static DefaultedRegistryReference<TicketType<Entity>>
POST_TELEPORT
static DefaultedRegistryReference<TicketType<Vector3i>>
STANDARD
-
-
-
Field Detail
-
STANDARD
public static final DefaultedRegistryReference<TicketType<Vector3i>> 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
public static final DefaultedRegistryReference<TicketType<Vector3i>> 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
public static final DefaultedRegistryReference<TicketType<Entity>> POST_TELEPORT
-
-
Method Detail
-
registry
public static Registry<TicketType<?>> registry()
-
-