public class CustomNoticePacketPacket extends AbstractPixelmonPacket
Constructor and Description |
---|
CustomNoticePacketPacket() |
Modifier and Type | Method and Description |
---|---|
void |
decode(net.minecraft.network.PacketBuffer buf)
Decodes the information from the buffer to the packet instance
|
void |
encode(net.minecraft.network.PacketBuffer buf)
Encodes the buffer with the packet information
|
protected void |
handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context) |
CustomNoticePacketPacket |
setEmpty() |
CustomNoticePacketPacket |
setEnabled(boolean enabled) |
void |
setItem3D(java.lang.String itemName,
EnumOverlayLayout displayType)
Deprecated.
|
void |
setItemSprite(java.lang.String itemName,
EnumOverlayLayout displayType)
Deprecated.
|
CustomNoticePacketPacket |
setItemStack(net.minecraft.item.ItemStack itemStack,
EnumOverlayLayout layout) |
CustomNoticePacketPacket |
setLines(net.minecraft.util.text.ITextComponent[] lines) |
CustomNoticePacketPacket |
setPokemon3D(PokemonSpecification spec,
EnumOverlayLayout layout) |
void |
setPokemon3D(Species species,
EnumOverlayLayout displayType,
float scale)
Deprecated.
|
CustomNoticePacketPacket |
setPokemonSprite(PokemonSpecification spec,
EnumOverlayLayout layout) |
void |
setPokemonSprite(Species species,
EnumOverlayLayout displayType)
Deprecated.
|
handle, reply
public CustomNoticePacketPacket setEnabled(boolean enabled)
public CustomNoticePacketPacket setLines(net.minecraft.util.text.ITextComponent[] lines)
public CustomNoticePacketPacket setPokemonSprite(PokemonSpecification spec, EnumOverlayLayout layout)
public CustomNoticePacketPacket setPokemon3D(PokemonSpecification spec, EnumOverlayLayout layout)
public CustomNoticePacketPacket setItemStack(net.minecraft.item.ItemStack itemStack, EnumOverlayLayout layout)
public CustomNoticePacketPacket setEmpty()
@Deprecated public void setPokemonSprite(Species species, EnumOverlayLayout displayType)
@Deprecated public void setPokemon3D(Species species, EnumOverlayLayout displayType, float scale)
@Deprecated public void setItemSprite(java.lang.String itemName, EnumOverlayLayout displayType)
@Deprecated public void setItem3D(java.lang.String itemName, EnumOverlayLayout displayType)
public void encode(net.minecraft.network.PacketBuffer buf)
PixelmonPacket
encode
in interface PixelmonPacket
encode
in class AbstractPixelmonPacket
buf
- The buffer being encodedpublic void decode(net.minecraft.network.PacketBuffer buf)
PixelmonPacket
decode
in interface PixelmonPacket
decode
in class AbstractPixelmonPacket
buf
- The buffer being decodedprotected void handlePacket(net.minecraftforge.fml.network.NetworkEvent.Context context)
handlePacket
in class AbstractPixelmonPacket