Class ItemCodecHelper
java.lang.Object
org.geysermc.mcprotocollib.network.codec.BasePacketCodecHelper
org.geysermc.mcprotocollib.protocol.codec.MinecraftCodecHelper
org.geysermc.mcprotocollib.protocol.data.game.item.component.ItemCodecHelper
- All Implemented Interfaces:
PacketCodecHelper
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadAdventureModePredicate(io.netty.buffer.ByteBuf buf) readArmorTrim(io.netty.buffer.ByteBuf buf) readBannerPattern(io.netty.buffer.ByteBuf buf) readBannerPatternLayer(io.netty.buffer.ByteBuf buf) readBeehiveOccupant(io.netty.buffer.ByteBuf buf) readBlockPredicate(io.netty.buffer.ByteBuf buf) readBlockStateProperties(io.netty.buffer.ByteBuf buf) readConsumable(io.netty.buffer.ByteBuf buf) readConsumeEffect(io.netty.buffer.ByteBuf buf) readDyedItemColor(io.netty.buffer.ByteBuf buf) readEffectDetails(io.netty.buffer.ByteBuf buf) readEffectInstance(io.netty.buffer.ByteBuf buf) readEquippable(io.netty.buffer.ByteBuf buf) <T> Filterable<T>readFilterable(io.netty.buffer.ByteBuf buf, Function<io.netty.buffer.ByteBuf, T> reader) readFireworkExplosion(io.netty.buffer.ByteBuf buf) readFireworks(io.netty.buffer.ByteBuf buf) readFoodProperties(io.netty.buffer.ByteBuf buf) readInstrument(io.netty.buffer.ByteBuf buf) readItemAttributeModifiers(io.netty.buffer.ByteBuf buf) readItemEnchantments(io.netty.buffer.ByteBuf buf) readJukeboxPlayable(io.netty.buffer.ByteBuf buf) readJukeboxSong(io.netty.buffer.ByteBuf buf) readLodestoneTarget(io.netty.buffer.ByteBuf buf) readPotionContents(io.netty.buffer.ByteBuf buf) org.cloudburstmc.nbt.NbtList<?>readRecipes(io.netty.buffer.ByteBuf buf) readResolvableProfile(io.netty.buffer.ByteBuf buf) readStewEffect(io.netty.buffer.ByteBuf buf) readToolData(io.netty.buffer.ByteBuf buf) readTrimMaterial(io.netty.buffer.ByteBuf buf) readTrimPattern(io.netty.buffer.ByteBuf buf) readUseCooldown(io.netty.buffer.ByteBuf buf) readWritableBookContent(io.netty.buffer.ByteBuf buf) readWrittenBookContent(io.netty.buffer.ByteBuf buf) voidwriteAdventureModePredicate(io.netty.buffer.ByteBuf buf, AdventureModePredicate adventureModePredicate) voidwriteArmorTrim(io.netty.buffer.ByteBuf buf, ArmorTrim trim) voidwriteBannerPattern(io.netty.buffer.ByteBuf buf, BannerPatternLayer.BannerPattern pattern) voidwriteBannerPatternLayer(io.netty.buffer.ByteBuf buf, BannerPatternLayer patternLayer) voidwriteBeehiveOccupant(io.netty.buffer.ByteBuf buf, BeehiveOccupant occupant) voidwriteBlockPredicate(io.netty.buffer.ByteBuf buf, AdventureModePredicate.BlockPredicate blockPredicate) voidwriteBlockStateProperties(io.netty.buffer.ByteBuf buf, BlockStateProperties props) voidwriteConsumable(io.netty.buffer.ByteBuf buf, Consumable consumable) voidwriteConsumeEffect(io.netty.buffer.ByteBuf buf, ConsumeEffect consumeEffect) voidwriteDyedItemColor(io.netty.buffer.ByteBuf buf, DyedItemColor itemColor) voidwriteEffectDetails(io.netty.buffer.ByteBuf buf, MobEffectDetails details) voidwriteEffectInstance(io.netty.buffer.ByteBuf buf, MobEffectInstance instance) voidwriteEquippable(io.netty.buffer.ByteBuf buf, Equippable equippable) <T> voidwriteFilterable(io.netty.buffer.ByteBuf buf, Filterable<T> filterable, BiConsumer<io.netty.buffer.ByteBuf, T> writer) voidwriteFireworkExplosion(io.netty.buffer.ByteBuf buf, Fireworks.FireworkExplosion explosion) voidwriteFireworks(io.netty.buffer.ByteBuf buf, Fireworks fireworks) voidwriteFoodProperties(io.netty.buffer.ByteBuf buf, FoodProperties properties) voidwriteInstrument(io.netty.buffer.ByteBuf buf, Holder<Instrument> instrumentHolder) voidwriteItemAttributeModifiers(io.netty.buffer.ByteBuf buf, ItemAttributeModifiers modifiers) voidwriteItemEnchantments(io.netty.buffer.ByteBuf buf, ItemEnchantments itemEnchantments) voidwriteJukeboxPlayable(io.netty.buffer.ByteBuf buf, JukeboxPlayable playable) voidwriteJukeboxSong(io.netty.buffer.ByteBuf buf, JukeboxPlayable.JukeboxSong song) voidwriteLodestoneTarget(io.netty.buffer.ByteBuf buf, LodestoneTracker target) voidwritePotionContents(io.netty.buffer.ByteBuf buf, PotionContents contents) voidwriteRecipes(io.netty.buffer.ByteBuf buf, org.cloudburstmc.nbt.NbtList<?> recipes) voidwriteResolvableProfile(io.netty.buffer.ByteBuf buf, GameProfile profile) voidwriteStewEffect(io.netty.buffer.ByteBuf buf, SuspiciousStewEffect effect) voidwriteToolData(io.netty.buffer.ByteBuf buf, ToolData data) voidwriteTrimMaterial(io.netty.buffer.ByteBuf buf, ArmorTrim.TrimMaterial material) voidwriteTrimPattern(io.netty.buffer.ByteBuf buf, ArmorTrim.TrimPattern pattern) voidwriteUseCooldown(io.netty.buffer.ByteBuf buf, UseCooldown useCooldown) voidwriteWritableBookContent(io.netty.buffer.ByteBuf buf, WritableBookContent content) voidwriteWrittenBookContent(io.netty.buffer.ByteBuf buf, WrittenBookContent content) Methods inherited from class org.geysermc.mcprotocollib.protocol.codec.MinecraftCodecHelper
readAnyTag, readAnyTag, readArmadilloState, readBlockBreakStage, readBlockEntityType, readById, readByteArray, readByteArray, readChatType, readChatTypeDecoration, readChunkSection, readChunkSection, readComponent, readCompoundTag, readCompoundTagOrThrow, readDataComponentPatch, readDataPalette, readDataPalette, readDirection, readEffect, readEntityEvent, readEntityMetadata, readEnumSet, readFixedBitSet, readGlobalPos, readHolder, readHolderSet, readItemStack, readLevelEvent, readLightUpdateData, readList, readLongArray, readLongArray, readMetadata, readMetadataType, readModifierOperation, readNullable, readNumberFormat, readOptionalItemStack, readPaintingVariant, readParticle, readParticleData, readParticleType, readPlayerSpawnInfo, readPose, readPosition, readPositionSource, readProperty, readQuaternion, readRecipeDisplay, readRecipeIngredient, readResourceLocation, readRotation, readSlotDisplay, readSnifferState, readSoundCategory, readSoundEvent, readStatisticCategory, readTradeItemStack, readUUID, readVillagerData, readWolfVariant, writeAnyTag, writeArmadilloState, writeBlockBreakStage, writeBlockEntityType, writeByteArray, writeByteArray, writeChatType, writeChatTypeDecoration, writeChunkSection, writeComponent, writeDataComponentPatch, writeDataPalette, writeDirection, writeEffect, writeEntityEvent, writeEntityMetadata, writeEnumSet, writeFixedBitSet, writeGlobalPos, writeHolder, writeHolderSet, writeItemStack, writeLevelEvent, writeLightUpdateData, writeList, writeLongArray, writeLongArray, writeMetadata, writeMetadataType, writeModifierOperation, writeNullable, writeNumberFormat, writeOptionalItemStack, writePaintingVariant, writeParticle, writeParticleData, writeParticleType, writePlayerSpawnInfo, writePose, writePosition, writePositionSource, writeProperty, writeQuaternion, writeRecipeDisplay, writeRecipeIngredient, writeResourceLocation, writeRotation, writeSlotDisplay, writeSnifferState, writeSoundCategory, writeSoundEvent, writeStatisticCategory, writeTradeItemStack, writeUUID, writeVillagerData, writeWolfVariantMethods inherited from class org.geysermc.mcprotocollib.network.codec.BasePacketCodecHelper
readString, readString, readVarInt, readVarLong, writeString, writeVarInt, writeVarLong
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ItemCodecHelper
public ItemCodecHelper()
-
-
Method Details
-
readFilterable
public <T> Filterable<T> readFilterable(io.netty.buffer.ByteBuf buf, Function<io.netty.buffer.ByteBuf, T> reader) -
writeFilterable
public <T> void writeFilterable(io.netty.buffer.ByteBuf buf, Filterable<T> filterable, BiConsumer<io.netty.buffer.ByteBuf, T> writer) -
readItemEnchantments
-
writeItemEnchantments
-
readAdventureModePredicate
-
writeAdventureModePredicate
public void writeAdventureModePredicate(io.netty.buffer.ByteBuf buf, AdventureModePredicate adventureModePredicate) -
readBlockPredicate
-
writeBlockPredicate
public void writeBlockPredicate(io.netty.buffer.ByteBuf buf, AdventureModePredicate.BlockPredicate blockPredicate) -
readToolData
-
writeToolData
-
readEquippable
-
writeEquippable
-
readItemAttributeModifiers
-
writeItemAttributeModifiers
public void writeItemAttributeModifiers(io.netty.buffer.ByteBuf buf, ItemAttributeModifiers modifiers) -
readDyedItemColor
-
writeDyedItemColor
-
readPotionContents
-
writePotionContents
-
readFoodProperties
-
writeFoodProperties
-
readConsumable
-
writeConsumable
-
readConsumeEffect
-
writeConsumeEffect
-
readUseCooldown
-
writeUseCooldown
-
readEffectInstance
-
readEffectDetails
-
writeEffectInstance
-
writeEffectDetails
-
readStewEffect
-
writeStewEffect
-
readWritableBookContent
-
writeWritableBookContent
-
readWrittenBookContent
-
writeWrittenBookContent
-
readArmorTrim
-
writeArmorTrim
-
readTrimMaterial
-
writeTrimMaterial
-
readTrimPattern
-
writeTrimPattern
-
readInstrument
-
writeInstrument
-
readRecipes
public org.cloudburstmc.nbt.NbtList<?> readRecipes(io.netty.buffer.ByteBuf buf) -
writeRecipes
public void writeRecipes(io.netty.buffer.ByteBuf buf, org.cloudburstmc.nbt.NbtList<?> recipes) -
readJukeboxPlayable
-
writeJukeboxPlayable
-
readJukeboxSong
-
writeJukeboxSong
-
readLodestoneTarget
-
writeLodestoneTarget
-
readFireworks
-
writeFireworks
-
readFireworkExplosion
-
writeFireworkExplosion
public void writeFireworkExplosion(io.netty.buffer.ByteBuf buf, Fireworks.FireworkExplosion explosion) -
readResolvableProfile
-
writeResolvableProfile
-
readBannerPatternLayer
-
writeBannerPatternLayer
-
readBannerPattern
-
writeBannerPattern
public void writeBannerPattern(io.netty.buffer.ByteBuf buf, BannerPatternLayer.BannerPattern pattern) -
readBlockStateProperties
-
writeBlockStateProperties
-
readBeehiveOccupant
-
writeBeehiveOccupant
-