public static class FMLPlayMessages.OpenContainer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private PacketBuffer |
additionalData |
private int |
id |
private ITextComponent |
name |
private int |
windowId |
Modifier | Constructor and Description |
---|---|
(package private) |
OpenContainer(ContainerType<?> id,
int windowId,
ITextComponent name,
PacketBuffer additionalData) |
private |
OpenContainer(int id,
int windowId,
ITextComponent name,
PacketBuffer additionalData) |
Modifier and Type | Method and 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) |
private final int id
private final int windowId
private final ITextComponent name
private final PacketBuffer additionalData
OpenContainer(ContainerType<?> id, int windowId, ITextComponent name, PacketBuffer additionalData)
private OpenContainer(int id, int windowId, ITextComponent name, PacketBuffer additionalData)
public static void encode(FMLPlayMessages.OpenContainer msg, PacketBuffer buf)
public static FMLPlayMessages.OpenContainer decode(PacketBuffer buf)
public static void handle(FMLPlayMessages.OpenContainer msg, java.util.function.Supplier<NetworkEvent.Context> ctx)
public final ContainerType<?> getType()
public int getWindowId()
public ITextComponent getName()
public PacketBuffer getAdditionalData()