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
Representsticketsthat ensures the targetchunksare 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
Vector3iis 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
Representsticketsthat are intended to ensure that the targetchunksaround aPortalare loaded, ready to acceptentitiesthat travel through it.The position represented by the
Vector3iis 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
-