Package net.minecraft.world.chunk
Interface ReadableContainer<T>
- All Known Implementing Classes:
 PalettedContainer
public interface ReadableContainer<T>
- Mappings:
 Namespace Name named net/minecraft/world/chunk/ReadableContainerintermediary net/minecraft/class_7522official egr
- 
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceReadableContainer.Reader<T,C extends ReadableContainer<T>> static final recordThe storage form of the paletted container in the codec. - 
Method Summary
Modifier and TypeMethodDescriptioncopy()voidcount(PalettedContainer.Counter<T> counter) voidforEachValue(Consumer<T> action) get(int x, int y, int z) intbooleanReturnstrueif any object in this container's palette matches this predicate.serialize(IndexedIterable<T> idList, PalettedContainer.PaletteProvider paletteProvider) slice()voidwritePacket(PacketByteBuf buf) Writes this container to the packet byte buffer. 
- 
Method Details
- 
get
- Mappings:
 Namespace Name Mixin selector named getLnet/minecraft/world/chunk/ReadableContainer;get(III)Ljava/lang/Object;intermediary method_12321Lnet/minecraft/class_7522;method_12321(III)Ljava/lang/Object;official aLegr;a(III)Ljava/lang/Object;
 - 
forEachValue
- Mappings:
 Namespace Name Mixin selector named forEachValueLnet/minecraft/world/chunk/ReadableContainer;forEachValue(Ljava/util/function/Consumer;)Vintermediary method_39793Lnet/minecraft/class_7522;method_39793(Ljava/util/function/Consumer;)Vofficial aLegr;a(Ljava/util/function/Consumer;)V
 - 
writePacket
Writes this container to the packet byte buffer.- Parameters:
 buf- the packet byte buffer- Mappings:
 Namespace Name Mixin selector named writePacketLnet/minecraft/world/chunk/ReadableContainer;writePacket(Lnet/minecraft/network/PacketByteBuf;)Vintermediary method_12325Lnet/minecraft/class_7522;method_12325(Lnet/minecraft/class_2540;)Vofficial bLegr;b(Lwg;)V
 - 
getPacketSize
int getPacketSize()- Mappings:
 Namespace Name Mixin selector named getPacketSizeLnet/minecraft/world/chunk/ReadableContainer;getPacketSize()Iintermediary method_12327Lnet/minecraft/class_7522;method_12327()Iofficial cLegr;c()I
 - 
hasAny
Returnstrueif any object in this container's palette matches this predicate.- Returns:
 trueif any object in this container's palette matches this predicate- Mappings:
 Namespace Name Mixin selector named hasAnyLnet/minecraft/world/chunk/ReadableContainer;hasAny(Ljava/util/function/Predicate;)Zintermediary method_19526Lnet/minecraft/class_7522;method_19526(Ljava/util/function/Predicate;)Zofficial aLegr;a(Ljava/util/function/Predicate;)Z
 - 
count
- Mappings:
 Namespace Name Mixin selector named countLnet/minecraft/world/chunk/ReadableContainer;count(Lnet/minecraft/world/chunk/PalettedContainer$Counter;)Vintermediary method_21732Lnet/minecraft/class_7522;method_21732(Lnet/minecraft/class_2841$class_4464;)Vofficial aLegr;a(Legq$b;)V
 - 
copy
PalettedContainer<T> copy()- Mappings:
 Namespace Name Mixin selector named copyLnet/minecraft/world/chunk/ReadableContainer;copy()Lnet/minecraft/world/chunk/PalettedContainer;intermediary method_39957Lnet/minecraft/class_7522;method_39957()Lnet/minecraft/class_2841;official dLegr;d()Legq;
 - 
slice
PalettedContainer<T> slice()- Mappings:
 Namespace Name Mixin selector named sliceLnet/minecraft/world/chunk/ReadableContainer;slice()Lnet/minecraft/world/chunk/PalettedContainer;intermediary method_44350Lnet/minecraft/class_7522;method_44350()Lnet/minecraft/class_2841;official eLegr;e()Legq;
 - 
serialize
ReadableContainer.Serialized<T> serialize(IndexedIterable<T> idList, PalettedContainer.PaletteProvider paletteProvider) - Mappings:
 Namespace Name Mixin selector named serializeLnet/minecraft/world/chunk/ReadableContainer;serialize(Lnet/minecraft/util/collection/IndexedIterable;Lnet/minecraft/world/chunk/PalettedContainer$PaletteProvider;)Lnet/minecraft/world/chunk/ReadableContainer$Serialized;intermediary method_44345Lnet/minecraft/class_7522;method_44345(Lnet/minecraft/class_2359;Lnet/minecraft/class_2841$class_6563;)Lnet/minecraft/class_7522$class_6562;official aLegr;a(Ljq;Legq$d;)Legr$a;
 
 -