- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
private Map<Iterable<ItemStack>, Predicate<ItemStack>> getSubInventories(Map<Iterable<ItemStack>, Predicate<ItemStack>> subInventories, EntityPlayer player) {
InventoryPlayer inv = player.inventory;
ItemStack heldItem = inv.getCurrentItem();
int wireless = tile.getNetwork().getSetting(NetworkSettings.NETWORK_WIRELESS);
if((wireless >> 1 & 1) == 1) {
subInventories.put(Lists.newArrayList(heldItem), NOT_EMPTY);
}
if((wireless >> 2 & 1) == 1) {
subInventories.put(inv.offHandInventory, NOT_EMPTY);
}
if((wireless >> 3 & 1) == 1) {
subInventories.put(inv.mainInventory.subList(0, 9), stack -> !stack.isEmpty() && (heldItem.isEmpty() || heldItem != stack));
}
if((wireless >> 4 & 1) == 1) {
subInventories.put(inv.armorInventory, NOT_EMPTY);
}
if((wireless >> 5 & 1) == 1) {
if(FluxNetworks.proxy.baublesLoaded) {
if(player.hasCapability(BaublesCapabilities.CAPABILITY_BAUBLES, null)){
IItemHandler handler = player.getCapability(BaublesCapabilities.CAPABILITY_BAUBLES, null);
subInventories.put(() -> new ItemHandlerIterator(handler), NOT_EMPTY);
}
}
}
return subInventories;
}
BJlADuMuPCKuu_nemyx 24.11.2019 21:39 # 0
В этом говно? Это шобы цепочки писать.
gost 24.11.2019 23:39 # 0
Rooster 25.11.2019 04:48 # +2