Class CustomNoticePacketPacket
java.lang.Object
com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPacket
com.pixelmonmod.pixelmon.comm.packetHandlers.custom.overlays.CustomNoticePacketPacket
- All Implemented Interfaces:
PixelmonPacket
Created by clienthax on 31/8/2015.
Updated by happyz on 17/02/2019.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
decode
(net.minecraft.network.FriendlyByteBuf buf) Decodes the information from the buffer to the packet instancevoid
encode
(net.minecraft.network.FriendlyByteBuf buf) Encodes the buffer with the packet informationprotected void
handlePacket
(net.minecraftforge.event.network.CustomPayloadEvent.Context context) setEmpty()
setEnabled
(boolean enabled) void
setItem3D
(String itemName, EnumOverlayLayout displayType) Deprecated.void
setItemSprite
(String itemName, EnumOverlayLayout displayType) Deprecated.setItemStack
(net.minecraft.world.item.ItemStack itemStack, EnumOverlayLayout layout) setLines
(net.minecraft.network.chat.Component[] lines) setPokemon3D
(PokemonSpecification spec, EnumOverlayLayout layout) void
setPokemon3D
(Species species, EnumOverlayLayout displayType, float scale) Deprecated.setPokemonSprite
(PokemonSpecification spec, EnumOverlayLayout layout) void
setPokemonSprite
(Species species, EnumOverlayLayout displayType) Deprecated.Methods inherited from class com.pixelmonmod.pixelmon.comm.data.AbstractPixelmonPacket
handle, reply
-
Constructor Details
-
CustomNoticePacketPacket
public CustomNoticePacketPacket()
-
-
Method Details
-
setEnabled
-
setLines
-
setPokemonSprite
public CustomNoticePacketPacket setPokemonSprite(PokemonSpecification spec, EnumOverlayLayout layout) -
setPokemon3D
-
setItemStack
public CustomNoticePacketPacket setItemStack(net.minecraft.world.item.ItemStack itemStack, EnumOverlayLayout layout) -
setEmpty
-
setPokemonSprite
Deprecated. -
setPokemon3D
Deprecated. -
setItemSprite
Deprecated. -
setItem3D
Deprecated. -
encode
public void encode(net.minecraft.network.FriendlyByteBuf buf) Description copied from interface:PixelmonPacket
Encodes the buffer with the packet information- Specified by:
encode
in interfacePixelmonPacket
- Overrides:
encode
in classAbstractPixelmonPacket
- Parameters:
buf
- The buffer being encoded
-
decode
public void decode(net.minecraft.network.FriendlyByteBuf buf) Description copied from interface:PixelmonPacket
Decodes the information from the buffer to the packet instance- Specified by:
decode
in interfacePixelmonPacket
- Overrides:
decode
in classAbstractPixelmonPacket
- Parameters:
buf
- The buffer being decoded
-
handlePacket
protected void handlePacket(net.minecraftforge.event.network.CustomPayloadEvent.Context context) - Specified by:
handlePacket
in classAbstractPixelmonPacket
-