Class ChangeLurePacket
java.lang.Object
com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPacket
com.pixelmonmod.pixelmon.comm.packetHandlers.clientStorage.ChangeLurePacket
- All Implemented Interfaces:
- PixelmonPacket,- net.minecraft.network.protocol.common.custom.CustomPacketPayload
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayloadnet.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B extends net.minecraft.network.FriendlyByteBuf>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B extends net.minecraft.network.FriendlyByteBuf,T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> 
- 
Field SummaryFieldsModifier and TypeFieldDescriptionintnet.minecraft.world.item.Item
- 
Constructor SummaryConstructorsConstructorDescriptionChangeLurePacket(ChangeLurePacket.Change change, net.minecraft.world.item.Item item, int damage) 
- 
Method SummaryModifier and TypeMethodDescriptionvoiddecode(net.minecraft.network.RegistryFriendlyByteBuf buf) Decodes the information from the buffer to the packet instancevoidencode(net.minecraft.network.RegistryFriendlyByteBuf buf) Encodes the buffer with the packet informationprotected voidhandlePacket(net.neoforged.neoforge.network.handling.IPayloadContext context) Methods inherited from class com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPackethandle, replyMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayloadtoVanillaClientbound, toVanillaServerboundMethods inherited from interface com.pixelmonmod.pixelmon.comm.data.PixelmonPacketdecode, encode, type
- 
Field Details- 
change
- 
itempublic net.minecraft.world.item.Item item
- 
damagepublic int damage
 
- 
- 
Constructor Details- 
ChangeLurePacketpublic ChangeLurePacket()
- 
ChangeLurePacket
- 
ChangeLurePacketpublic ChangeLurePacket(ChangeLurePacket.Change change, net.minecraft.world.item.Item item, int damage) 
 
- 
- 
Method Details- 
decodepublic void decode(net.minecraft.network.RegistryFriendlyByteBuf buf) Description copied from interface:PixelmonPacketDecodes the information from the buffer to the packet instance- Specified by:
- decodein interface- PixelmonPacket
- Overrides:
- decodein class- AbstractPixelmonPacket
- Parameters:
- buf- The buffer being decoded
 
- 
encodepublic void encode(net.minecraft.network.RegistryFriendlyByteBuf buf) Description copied from interface:PixelmonPacketEncodes the buffer with the packet information- Specified by:
- encodein interface- PixelmonPacket
- Overrides:
- encodein class- AbstractPixelmonPacket
- Parameters:
- buf- The buffer being encoded
 
- 
handlePacketprotected void handlePacket(net.neoforged.neoforge.network.handling.IPayloadContext context) - Specified by:
- handlePacketin class- AbstractPixelmonPacket
 
 
-