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