net.minecraft.world.level

public class TicketStorage

extends SavedData

djm
net.minecraft.world.level.TicketStorage
net.minecraft.class_10592
net.minecraft.server.world.ChunkTicketManager

Field summary

Modifier and TypeField
private static final int
b
INITIAL_TICKET_LIST_CAPACITY
field_55719
DEFAULT_TICKETS_MAP_SIZE
private static final org.slf4j.Logger
c
LOGGER
field_55720
LOGGER
public static final String
a
FILE_ID
field_55718
CHUNKS_NBT_KEY
private static final String
d
TAG_TICKETS
field_55721
TICKETS_NBT_KEY
private static final String
e
TAG_CHUNK_POS
field_55722
CHUNK_POS_NBT_KEY
private final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<List<Ticket>>
f
tickets
field_55723
tickets
private final it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<List<Ticket>>
g
deactivatedTickets
field_55724
savedTickets
private it.unimi.dsi.fastutil.longs.LongSet
h
chunksWithForcedTickets
field_55725
forcedChunks
private TicketStorage$ChunkUpdated
i
loadingChunkUpdatedListener
field_55726
loadingLevelUpdater
private TicketStorage$ChunkUpdated
j
simulationChunkUpdatedListener
field_55727
simulationLevelUpdater

Constructor summary

ModifierConstructor
private (it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<List<Ticket>> tickets, it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<List<Ticket>> savedTickets)
public ()

Method summary

Modifier and TypeMethod
public static SavedData$Factory<TicketStorage>
a()
factory()
method_66350()
getType()
public static TicketStorage
b(tx arg0, jg$a arg1)
load(CompoundTag arg0, HolderLookup$Provider arg1)
method_66376(class_2487 arg0, class_7225$class_7874 arg1)
fromNbt(NbtCompound nbt, RegistryWrapper$WrapperLookup registries)
public CompoundTag
a(tx arg0, jg$a arg1)
save(CompoundTag arg0, HolderLookup$Provider arg1)
method_75(class_2487 arg0, class_7225$class_7874 arg1)
writeNbt(NbtCompound arg0, RegistryWrapper$WrapperLookup arg1)
private static void
a(ud arg0, long arg1, List<aru> arg2)
saveTicketsForChunk(ListTag arg0, long arg1, List<Ticket> arg2)
method_66365(class_2499 arg0, long arg1, List<class_3228> arg2)
writeNbt(NbtList list, long pos, List<ChunkTicket> tickets)
public void
b()
activateAllDeactivatedTickets()
method_66367()
promoteToRealTickets()
public void
a(djm$a arg0)
setLoadingChunkUpdatedListener(TicketStorage$ChunkUpdated arg0)
method_66360(class_10592$class_10593 arg0)
setLoadingLevelUpdater(ChunkTicketManager$LevelUpdater loadingLevelUpdater)
public void
b(djm$a arg0)
setSimulationChunkUpdatedListener(TicketStorage$ChunkUpdated arg0)
method_66374(class_10592$class_10593 arg0)
setSimulationLevelUpdater(ChunkTicketManager$LevelUpdater simulationLevelUpdater)
public boolean
c()
hasTickets()
method_66378()
hasTickets()
public List<Ticket>
a(long arg0)
getTickets(long arg0)
method_66352(long arg0)
getTickets(long pos)
private List<Ticket>
b(long arg0)
getOrCreateTickets(long arg0)
method_66368(long arg0)
getTicketsMutable(long pos)
public void
a(arv arg0, dhw arg1, int arg2)
addTicketWithRadius(TicketType arg0, ChunkPos arg1, int arg2)
method_66358(class_3230 arg0, class_1923 arg1, int arg2)
addTicket(ChunkTicketType type, ChunkPos pos, int radius)
public void
a(aru arg0, dhw arg1)
addTicket(Ticket arg0, ChunkPos arg1)
method_66357(class_3228 arg0, class_1923 arg1)
addTicket(ChunkTicket ticket, ChunkPos pos)
public boolean
a(long arg0, aru arg1)
addTicket(long arg0, Ticket arg1)
method_66353(long arg0, class_3228 arg1)
addTicket(long pos, ChunkTicket ticket)
private static boolean
a(aru arg0, aru arg1)
isTicketSameTypeAndLevel(Ticket arg0, Ticket arg1)
method_66356(class_3228 arg0, class_3228 arg1)
ticketsEqual(ChunkTicket a, ChunkTicket b)
public int
a(long arg0, boolean arg1)
getTicketLevelAt(long arg0, boolean arg1)
method_66354(long arg0, boolean arg1)
getLevel(long pos, boolean forSimulation)
private static int
a(List<aru> arg0, boolean arg1)
getTicketLevelAt(List<Ticket> arg0, boolean arg1)
method_66362(List<class_3228> arg0, boolean arg1)
getLevel(List<ChunkTicket> tickets, boolean forSimulation)
private static Ticket
b(List<aru> arg0, boolean arg1)
getLowestTicket(List<Ticket> arg0, boolean arg1)
method_66375(List<class_3228> arg0, boolean arg1)
getActiveTicket(List<ChunkTicket> tickets, boolean forSimulation)
public void
b(arv arg0, dhw arg1, int arg2)
removeTicketWithRadius(TicketType arg0, ChunkPos arg1, int arg2)
method_66373(class_3230 arg0, class_1923 arg1, int arg2)
removeTicket(ChunkTicketType type, ChunkPos pos, int radius)
public void
b(aru arg0, dhw arg1)
removeTicket(Ticket arg0, ChunkPos arg1)
method_66372(class_3228 arg0, class_1923 arg1)
removeTicket(ChunkTicket ticket, ChunkPos pos)
public boolean
b(long arg0, aru arg1)
removeTicket(long arg0, Ticket arg1)
method_66369(long arg0, class_3228 arg1)
removeTicket(long pos, ChunkTicket ticket)
private void
i()
updateForcedChunks()
method_66385()
recomputeForcedChunks()
public String
b(long arg0, boolean arg1)
getTicketDebugString(long arg0, boolean arg1)
method_66370(long arg0, boolean arg1)
getDebugString(long pos, boolean forSimulation)
public void
d()
purgeStaleTickets()
method_66381()
tick()
public void
e()
deactivateTicketsOnClosing()
method_66383()
shutdown()
public void
a(Predicate<aru> arg0, it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<List<aru>> arg1)
removeTicketIf(Predicate<Ticket> arg0, it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<List<Ticket>> arg1)
method_66364(Predicate<class_3228> arg0, it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<List<class_3228>> arg1)
removeTicketsIf(Predicate<ChunkTicket> predicate, it.unimi.dsi.fastutil.longs.Long2ObjectOpenHashMap<List<ChunkTicket>> transferTo)
public void
a(int arg0, arv arg1)
replaceTicketLevelOfType(int arg0, TicketType arg1)
method_66351(int arg0, class_3230 arg1)
updateLevel(int level, ChunkTicketType type)
public boolean
a(dhw arg0, boolean arg1)
updateChunkForced(ChunkPos arg0, boolean arg1)
method_66359(class_1923 arg0, boolean arg1)
setChunkForced(ChunkPos pos, boolean forced)
public it.unimi.dsi.fastutil.longs.LongSet
f()
getForceLoadedChunks()
method_66384()
getForcedChunks()
private it.unimi.dsi.fastutil.longs.LongSet
a(Predicate<aru> arg0)
getAllChunksWithTicketThat(Predicate<Ticket> arg0)
method_66363(Predicate<class_3228> arg0)
getAllChunksMatching(Predicate<ChunkTicket> predicate)