Class TicketHelper
java.lang.Object
net.neoforged.neoforge.common.world.chunk.TicketHelper
Class to help mods remove no longer valid tickets.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final ResourceLocationprivate final ForcedChunksSavedData
- 
Constructor SummaryConstructorsConstructorDescriptionTicketHelper(ForcedChunksSavedData saveData, ResourceLocation controllerId, Map<BlockPos, TicketSet> blockTickets, Map<UUID, TicketSet> entityTickets) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns all "BLOCK" tickets this controller had registered and which block positions are forcing which chunks.Returns all "ENTITY" tickets this controller had registered and which entity (UUID) is forcing which chunks.voidremoveAllTickets(UUID owner) Removes all tickets that a given entity (UUID) was responsible for; both ticking and not ticking.voidremoveAllTickets(BlockPos owner) Removes all tickets that a given block was responsible for; both ticking and not ticking.private <T extends Comparable<? super T>>
 voidremoveAllTickets(ForcedChunkManager.TicketTracker<T> tickets, T owner) Removes all tickets that a given owner was responsible for; both ticking and not ticking.voidremoveTicket(UUID owner, long chunk, boolean ticking) Removes the ticket for the given chunk that a given entity (UUID) was responsible for.voidremoveTicket(BlockPos owner, long chunk, boolean ticking) Removes the ticket for the given chunk that a given block was responsible for.private <T extends Comparable<? super T>>
 voidremoveTicket(ForcedChunkManager.TicketTracker<T> tickets, T owner, long chunk, boolean ticking) 
- 
Field Details- 
blockTickets
- 
entityTickets
- 
saveData
- 
controllerId
 
- 
- 
Constructor Details- 
TicketHelperTicketHelper(ForcedChunksSavedData saveData, ResourceLocation controllerId, Map<BlockPos, TicketSet> blockTickets, Map<UUID, TicketSet> entityTickets) 
 
- 
- 
Method Details- 
getBlockTicketsReturns all "BLOCK" tickets this controller had registered and which block positions are forcing which chunks.- Returns:
- all "BLOCK" tickets this controller had registered and which block positions are forcing which chunks
 
- 
getEntityTicketsReturns all "ENTITY" tickets this controller had registered and which entity (UUID) is forcing which chunks.- Returns:
- all "ENTITY" tickets this controller had registered and which entity (UUID) is forcing which chunks
 
- 
removeAllTicketsRemoves all tickets that a given block was responsible for; both ticking and not ticking.- Parameters:
- owner- Block that was responsible.
 
- 
removeAllTicketsRemoves all tickets that a given entity (UUID) was responsible for; both ticking and not ticking.- Parameters:
- owner- Entity (UUID) that was responsible.
 
- 
removeAllTicketsprivate <T extends Comparable<? super T>> void removeAllTickets(ForcedChunkManager.TicketTracker<T> tickets, T owner) Removes all tickets that a given owner was responsible for; both ticking and not ticking.
- 
removeTicketRemoves the ticket for the given chunk that a given block was responsible for.- Parameters:
- owner- block that was responsible
- chunk- chunk to remove ticket of
- ticking- whether or not the ticket to remove represents a ticking set of tickets or not
 
- 
removeTicketRemoves the ticket for the given chunk that a given entity (UUID) was responsible for.- Parameters:
- owner- entity (UUID) that was responsible
- chunk- chunk to remove ticket of
- ticking- whether or not the ticket to remove represents a ticking set of tickets or not
 
- 
removeTicketprivate <T extends Comparable<? super T>> void removeTicket(ForcedChunkManager.TicketTracker<T> tickets, T owner, long chunk, boolean ticking) 
 
-