Class OpenContainer
java.lang.Object
net.minecraftforge.network.packets.OpenContainer
-
Field Summary
Modifier and TypeFieldDescriptionprivate final FriendlyByteBuf
private final int
private final Component
private final int
-
Constructor Summary
ModifierConstructorDescriptionprivate
OpenContainer
(int id, int windowId, Component name, FriendlyByteBuf additionalData) OpenContainer
(MenuType<?> id, int windowId, Component name, FriendlyByteBuf additionalData) Use NetworkHooks.openScreen -
Method Summary
Modifier and TypeMethodDescriptionstatic OpenContainer
decode
(FriendlyByteBuf buf) static void
encode
(OpenContainer msg, FriendlyByteBuf buf) getName()
final MenuType<?>
getType()
int
static void
handle
(OpenContainer msg, CustomPayloadEvent.Context ctx)
-
Field Details
-
id
private final int id -
windowId
private final int windowId -
name
-
additionalData
-
-
Constructor Details
-
OpenContainer
@Internal public OpenContainer(MenuType<?> id, int windowId, Component name, FriendlyByteBuf additionalData) Use NetworkHooks.openScreen -
OpenContainer
-
-
Method Details
-
encode
-
decode
-
handle
-
getType
-
getWindowId
public int getWindowId() -
getName
-
getAdditionalData
-