/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.google.common.annotations.VisibleForTesting * com.mojang.serialization.DataResult */ package net.minecraft.world.level.chunk; import com.google.common.annotations.VisibleForTesting; import com.mojang.serialization.DataResult; import java.util.List; import java.util.Optional; import java.util.function.Consumer; import java.util.function.Predicate; import java.util.stream.LongStream; import net.minecraft.network.FriendlyByteBuf; import net.minecraft.world.level.chunk.PalettedContainer; import net.minecraft.world.level.chunk.Strategy; public interface PalettedContainerRO { public T get(int var1, int var2, int var3); public void getAll(Consumer var1); public void write(FriendlyByteBuf var1); public int getSerializedSize(); @VisibleForTesting public int bitsPerEntry(); public boolean maybeHas(Predicate var1); public void count(PalettedContainer.CountConsumer var1); public PalettedContainer copy(); public PalettedContainer recreate(); public PackedData pack(Strategy var1); public static interface Unpacker> { public DataResult read(Strategy var1, PackedData var2); } public record PackedData(List paletteEntries, Optional storage, int bitsPerEntry) { public static final int UNKNOWN_BITS_PER_ENTRY = -1; public PackedData(List paletteEntries, Optional storage) { this(paletteEntries, storage, -1); } } }