Package net.minecraft.world.chunk
Class IdListPalette<T>
java.lang.Object
net.minecraft.world.chunk.IdListPalette<T>
- All Implemented Interfaces:
Palette<T>
public class IdListPalette<T> extends Object implements Palette<T>
- Mappings:
Namespace Name official cjt
intermediary net/minecraft/class_2816
named net/minecraft/world/chunk/IdListPalette
-
Field Summary
Fields Modifier and Type Field Description private T
defaultValue
private IdList<T>
idList
-
Constructor Summary
Constructors Constructor Description IdListPalette(IdList<T> idList, T defaultValue)
-
Method Summary
Modifier and Type Method Description boolean
accepts(Predicate<T> predicate)
void
fromPacket(PacketByteBuf buf)
void
fromTag(ListTag tag)
T
getByIndex(int index)
int
getIndex(T object)
int
getPacketSize()
void
toPacket(PacketByteBuf buf)
-
Field Details
-
idList
- Mappings:
Namespace Name Mixin selector official a
Lcjt;a:Lgh;
intermediary field_12828
Lnet/minecraft/class_2816;field_12828:Lnet/minecraft/class_2361;
named idList
Lnet/minecraft/world/chunk/IdListPalette;idList:Lnet/minecraft/util/collection/IdList;
-
defaultValue
- Mappings:
Namespace Name Mixin selector official b
Lcjt;b:Ljava/lang/Object;
intermediary field_12829
Lnet/minecraft/class_2816;field_12829:Ljava/lang/Object;
named defaultValue
Lnet/minecraft/world/chunk/IdListPalette;defaultValue:Ljava/lang/Object;
-
-
Constructor Details
-
IdListPalette
- Mappings:
Namespace Name Mixin selector official <init>
Lcjt;<init>(Lgh;Ljava/lang/Object;)V
intermediary <init>
Lnet/minecraft/class_2816;<init>(Lnet/minecraft/class_2361;Ljava/lang/Object;)V
named <init>
Lnet/minecraft/world/chunk/IdListPalette;<init>(Lnet/minecraft/util/collection/IdList;Ljava/lang/Object;)V
-
-
Method Details
-
getIndex
-
accepts
- Specified by:
accepts
in interfacePalette<T>
- Mappings:
Namespace Name Mixin selector official a
Lckb;a(Ljava/util/function/Predicate;)Z
intermediary method_19525
Lnet/minecraft/class_2837;method_19525(Ljava/util/function/Predicate;)Z
named accepts
Lnet/minecraft/world/chunk/Palette;accepts(Ljava/util/function/Predicate;)Z
-
getByIndex
- Specified by:
getByIndex
in interfacePalette<T>
- Mappings:
Namespace Name Mixin selector official a
Lckb;a(I)Ljava/lang/Object;
intermediary method_12288
Lnet/minecraft/class_2837;method_12288(I)Ljava/lang/Object;
named getByIndex
Lnet/minecraft/world/chunk/Palette;getByIndex(I)Ljava/lang/Object;
-
fromPacket
- Specified by:
fromPacket
in interfacePalette<T>
- Mappings:
Namespace Name Mixin selector official a
Lckb;a(Lnw;)V
intermediary method_12289
Lnet/minecraft/class_2837;method_12289(Lnet/minecraft/class_2540;)V
named fromPacket
Lnet/minecraft/world/chunk/Palette;fromPacket(Lnet/minecraft/network/PacketByteBuf;)V
-
toPacket
- Specified by:
toPacket
in interfacePalette<T>
- Mappings:
Namespace Name Mixin selector official b
Lckb;b(Lnw;)V
intermediary method_12287
Lnet/minecraft/class_2837;method_12287(Lnet/minecraft/class_2540;)V
named toPacket
Lnet/minecraft/world/chunk/Palette;toPacket(Lnet/minecraft/network/PacketByteBuf;)V
-
getPacketSize
public int getPacketSize()- Specified by:
getPacketSize
in interfacePalette<T>
- Mappings:
Namespace Name Mixin selector official a
Lckb;a()I
intermediary method_12290
Lnet/minecraft/class_2837;method_12290()I
named getPacketSize
Lnet/minecraft/world/chunk/Palette;getPacketSize()I
-
fromTag
-