Class SyncBackSlot
java.lang.Object
com.beansgalaxy.backpacks.network.clientbound.SyncBackSlot
- All Implemented Interfaces:
Packet2C
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal intintfinal net.minecraft.world.item.ItemStack -
Constructor Summary
ConstructorsConstructorDescriptionSyncBackSlot(int entity, net.minecraft.world.item.ItemStack stack) SyncBackSlot(net.minecraft.network.FriendlyByteBuf buf) -
Method Summary
-
Field Details
-
failedSyncAttempts
public int failedSyncAttempts -
entity
public final int entity -
stack
public final net.minecraft.world.item.ItemStack stack
-
-
Constructor Details
-
SyncBackSlot
public SyncBackSlot(int entity, net.minecraft.world.item.ItemStack stack) -
SyncBackSlot
public SyncBackSlot(net.minecraft.network.FriendlyByteBuf buf)
-
-
Method Details
-
send
public static void send(net.minecraft.world.entity.player.Player owner, net.minecraft.server.level.ServerPlayer sender) -
send
public static void send(net.minecraft.server.level.ServerPlayer owner) -
getNetwork
- Specified by:
getNetworkin interfacePacket2C
-
encode
public void encode(net.minecraft.network.FriendlyByteBuf buf) -
handle
public void handle() -
indexHeldSlots
public static void indexHeldSlots()
-