Class FetchInventoryPacket<S extends NetworkStorage>
java.lang.Object
com.hammy275.immersivemc.common.network.packet.FetchInventoryPacket<S>
-
Field Summary
-
Constructor Summary
ConstructorDescriptionFetchInventoryPacket
(ImmersiveHandler<S> handler, S storage, net.minecraft.core.BlockPos pos) -
Method Summary
Modifier and TypeMethodDescriptionstatic <NS extends NetworkStorage>
FetchInventoryPacket<NS>decode
(net.minecraft.network.FriendlyByteBuf buffer) static <NS extends NetworkStorage>
voidencode
(FetchInventoryPacket<NS> packet, net.minecraft.network.FriendlyByteBuf buffer) static <NS extends NetworkStorage>
voidhandle
(FetchInventoryPacket<NS> message, net.minecraft.server.level.ServerPlayer player)
-
Field Details
-
storage
-
handler
-
pos
public final net.minecraft.core.BlockPos pos
-
-
Constructor Details
-
FetchInventoryPacket
public FetchInventoryPacket(ImmersiveHandler<S> handler, S storage, net.minecraft.core.BlockPos pos)
-
-
Method Details
-
encode
public static <NS extends NetworkStorage> void encode(FetchInventoryPacket<NS> packet, net.minecraft.network.FriendlyByteBuf buffer) -
decode
public static <NS extends NetworkStorage> FetchInventoryPacket<NS> decode(net.minecraft.network.FriendlyByteBuf buffer) -
handle
public static <NS extends NetworkStorage> void handle(FetchInventoryPacket<NS> message, net.minecraft.server.level.ServerPlayer player)
-