use of com.nukkitx.protocol.bedrock.data.inventory.InventorySource in project Protocol by CloudburstMC.
the class BedrockPacketHelper_v431 method readInventoryActions.
@Override
public boolean readInventoryActions(ByteBuf buffer, BedrockSession session, List<InventoryActionData> actions) {
this.readArray(buffer, actions, session, (buf, helper, aSession) -> {
InventorySource source = helper.readSource(buf);
int slot = VarInts.readUnsignedInt(buf);
ItemData fromItem = helper.readItem(buf, aSession);
ItemData toItem = helper.readItem(buf, aSession);
return new InventoryActionData(source, slot, fromItem, toItem);
});
return false;
}
Aggregations