net.minecraft.client.gui.render

public class GuiAtlasSlotAllocator<K>

net.minecraft.client.gui.render.DynamicAtlasAllocator
net.minecraft.class_1_235
net.minecraft.client.gui.render.GuiAtlasSlotAllocator

Field summary

Modifier and TypeField
private final int
width
field_1_1586
width
private final List<GuiAtlasSlotAllocator$Slot>
slots
field_1_1584
slots
private final Map<K, GuiAtlasSlotAllocator$Slot>
usedSlotByKey
field_1_1585
occupiedSlots
private final BitSet
freeSlots
field_1_1583
occupied

Constructor summary

ModifierConstructor
public (int width, int height)

Method summary

Modifier and TypeMethod
public boolean
reclaimSpaceFor(Set<K> keys)
method_1_1901(Set<K> arg0)
tryEvictToFitKeys(Set<K> keys)
public void
endFrame()
method_1_1893()
removeAnimated()
private void
freeSlotIf(BiPredicate<K, DynamicAtlasAllocator$Slot> predicate)
method_1_1895(BiPredicate<K, class_1_235$class_1_236> arg0)
removeIf(BiPredicate<K, GuiAtlasSlotAllocator$Slot> removalPredicate)
public boolean
hasSpaceForAll(Set<K> keys)
method_1_1897(Set<K> arg0)
canFitKeys(Set<K> keys)
public GuiAtlasSlotAllocator$Slot
getOrAllocate(K key, boolean discardAfterFrame)
method_1_1896(K arg0, boolean arg1)
getOrCreateSlot(K key, boolean animated)
public int
freeSlotCount()
method_1_1894()
getVacantSlotCount()
public Set<K>
usedSlotKeys()
method_1_1902()
getOccupiedKeys()
private boolean
lambda$freeSlotIf$0(BiPredicate arg0, Map$Entry arg1)
method_1_1899(BiPredicate arg0, Map$Entry arg1)
method_1_1899(BiPredicate arg0, Map$Entry entry)
private static boolean
lambda$endFrame$0(Object arg0, DynamicAtlasAllocator$Slot arg1)
method_1_1898(Object arg0, class_1_235$class_1_236 arg1)
method_1_1898(Object key, GuiAtlasSlotAllocator$Slot slot)
private static boolean
lambda$reclaimSpaceFor$0(org.apache.commons.lang3.mutable.MutableInt arg0, Set arg1, Object arg2, DynamicAtlasAllocator$Slot arg3)
method_1_1900(org.apache.commons.lang3.mutable.MutableInt arg0, Set arg1, Object arg2, class_1_235$class_1_236 arg3)
method_1_1900(org.apache.commons.lang3.mutable.MutableInt arg0, Set arg1, Object key, GuiAtlasSlotAllocator$Slot slot)