Package net.minecraftforge.fml.network
Class FMLPlayMessages.OpenContainer
- java.lang.Object
-
- net.minecraftforge.fml.network.FMLPlayMessages.OpenContainer
-
- Enclosing class:
- FMLPlayMessages
public static class FMLPlayMessages.OpenContainer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private PacketBuffer
additionalData
private int
id
private ITextComponent
name
private int
windowId
-
Constructor Summary
Constructors Modifier Constructor Description private
OpenContainer(int id, int windowId, ITextComponent name, PacketBuffer additionalData)
(package private)
OpenContainer(ContainerType<?> id, int windowId, ITextComponent name, PacketBuffer additionalData)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FMLPlayMessages.OpenContainer
decode(PacketBuffer buf)
static void
encode(FMLPlayMessages.OpenContainer msg, PacketBuffer buf)
PacketBuffer
getAdditionalData()
ITextComponent
getName()
ContainerType<?>
getType()
int
getWindowId()
static void
handle(FMLPlayMessages.OpenContainer msg, java.util.function.Supplier<NetworkEvent.Context> ctx)
-
-
-
Field Detail
-
id
private final int id
-
windowId
private final int windowId
-
name
private final ITextComponent name
-
additionalData
private final PacketBuffer additionalData
-
-
Constructor Detail
-
OpenContainer
OpenContainer(ContainerType<?> id, int windowId, ITextComponent name, PacketBuffer additionalData)
-
OpenContainer
private OpenContainer(int id, int windowId, ITextComponent name, PacketBuffer additionalData)
-
-
Method Detail
-
encode
public static void encode(FMLPlayMessages.OpenContainer msg, PacketBuffer buf)
-
decode
public static FMLPlayMessages.OpenContainer decode(PacketBuffer buf)
-
handle
public static void handle(FMLPlayMessages.OpenContainer msg, java.util.function.Supplier<NetworkEvent.Context> ctx)
-
getType
public final ContainerType<?> getType()
-
getWindowId
public int getWindowId()
-
getName
public ITextComponent getName()
-
getAdditionalData
public PacketBuffer getAdditionalData()
-
-