Compare commits

...

35 Commits

Author SHA1 Message Date
PrototypeTrousers 3ae251f098 Revert "Merge remote-tracking branch 'LasmGratel/async-itemrepo' into AE2-Omnifactory"
This reverts commit 86a42e970f.
2023-01-09 01:03:55 -03:00
PrototypeTrousers 82a906886f Revert "delay repo view sorting to once per tick"
This reverts commit d9588441b0.
2023-01-09 01:03:51 -03:00
PrototypeTrousers 5b2c6658c0 Revert "synchronizedList must be in a synchronized block when iterating"
This reverts commit 1f12fc5e91.
2023-01-09 01:03:51 -03:00
TheAirBlow 8c29eeecdc Add support for RecipeStages and ItemStages (#198)
* RecipeStages info in README

* Add support for RecipeStages

* Add support for ItemStages
2022-12-26 09:03:49 -03:00
PrototypeTrousers d852d0c216 bump version 2022-12-10 21:26:55 -03:00
Dane Strandboge f9bb00a7e7 fix patterns not respecting item models and colors... (#193)
when shift key is held and the "output" item in the pattern is rendered instead of the base pattern texture

Consequences:
- The "output" item of the pattern will now be rendered always when shift is held, not just when the TransformType is GUI.
    - This means that you will see the "output" item now for in-world patterns, as well as the rendered model in the player's hand or offhand
    - However, I honestly think this is an improvement from before
2022-12-10 21:17:26 -03:00
PrototypeTrousers 9f7e42ca7d fix lang entry 2022-12-07 20:29:46 -03:00
PrototypeTrousers b76c18fedf fix JEI transfer handler breaking in some instances 2022-12-07 20:29:39 -03:00
PrototypeTrousers 98ce8235bb revert change made to fix nee compat but broke it instead 2022-11-22 20:30:20 -03:00
PrototypeTrousers e1ea4ae22f Revert "restore method name to keep compat with NEE"
This reverts commit c5607bda4e.
2022-11-22 20:29:04 -03:00
PrototypeTrousers 20ba83c529 bump version 2022-11-22 19:11:05 -03:00
PrototypeTrousers 225a4d5ab6 fix items voiding under certain circumstances 2022-11-22 19:04:59 -03:00
PrototypeTrousers bd4f03652e bump version 2022-11-20 14:05:29 -03:00
PrototypeTrousers d6650f9617 Merge remote-tracking branch 'TheAirBlow/AE2-Omnifactory' into AE2-Omnifactory 2022-11-20 14:04:46 -03:00
PrototypeTrousers c5607bda4e restore method name to keep compat with NEE 2022-11-20 14:03:36 -03:00
PrototypeTrousers 11af1f2111 actually sort.. with invTweaks AND bogosort... 2022-11-20 14:00:18 -03:00
TheAirBlow 7748f7c92d Fix #189 + replace curseforge with curse.maven 2022-11-20 19:32:36 +05:00
PrototypeTrousers 801fec3eaa another attempt to fix async item view crashes 2022-11-17 18:22:21 -03:00
PrototypeTrousers de324aad91 rename 9 slot fluid interface texture 2022-11-11 20:51:22 -03:00
PrototypeTrousers 16ccb2ee46 Fix blocks connecting to ME cables. Give boost to chisel facades 2022-11-08 23:05:41 -03:00
PrototypeTrousers bd0d2a1f28 0.54.11 2022-11-08 18:01:39 -03:00
PrototypeTrousers 9abd53a8e8 fix encoded patterns not showing the encoded item in AE GUIs 2022-11-08 18:01:00 -03:00
PrototypeTrousers 1f12fc5e91 synchronizedList must be in a synchronized block when iterating 2022-11-08 18:00:30 -03:00
Yang Xizhi 87fcc6c267 update nbt when accepting result (#180) 2022-11-08 17:46:17 -03:00
PrototypeTrousers e301459dfa bump version 2022-10-29 10:32:16 -03:00
Yang Xizhi bf802f1c6f fix ae fluid inventory fluid exceeding (#174)
* ae fluid inventory fix
2022-10-29 10:31:54 -03:00
Xikaro 7ba4ca6923 External improvements (#166)
* lang

* Update controller_column_lights.png.mcmeta

* energy cell

cells display internal energy storage along the bar

* 3D drive

* drive fix model

* 3D chest

* Update ru_ru.lang

* Update ru_ru.lang

* model fix drive and chest
2022-10-27 20:15:16 -03:00
PrototypeTrousers 53ed861e23 isolate the oversized slots and itemhandlers 2022-10-27 20:13:44 -03:00
PrototypeTrousers 833f8aca2a More damaged item search work. GT tools are so special 2022-10-26 13:29:35 -03:00
PrototypeTrousers 9bcf45b7e2 add a healthy 1 sec delay between JEI transfer updates to avoid horrible
GC pressure
2022-10-25 22:32:53 -03:00
PrototypeTrousers b2847677ed forgot to check the items already in the 3x3 grid 2022-10-24 17:29:25 -03:00
PrototypeTrousers 95845d5a6c 54.4 2022-10-24 17:08:44 -03:00
PrototypeTrousers 286a3631be Merge branch 'mytsag-crystal-fix' into AE2-Omnifactory 2022-10-24 17:08:25 -03:00
PrototypeTrousers 6506301049 fix fluid interfaces / configuration terminal not showing all the slots 2022-10-24 17:05:27 -03:00
PrototypeTrousers 422543f205 check player inv for items that can be used to craft 2022-10-24 16:38:25 -03:00
76 changed files with 1655 additions and 1366 deletions
+9 -6
View File
@@ -1,17 +1,21 @@
This is a fork of AE2 i made for trying to solve issues for the [Omnifactory](https://www.curseforge.com/minecraft/modpacks/omnifactory) modpack. This is a fork of AE2 i made for trying to solve issues for the [Omnifactory](https://www.curseforge.com/minecraft/modpacks/omnifactory) modpack.
See https://github.com/PrototypeTrousers/Applied-Energistics-2/tree/AE2-Omnifactory branch for commits See [AE2-Omnifactory](https://github.com/PrototypeTrousers/Applied-Energistics-2/tree/AE2-Omnifactory) branch for commits and [Releases](https://github.com/PrototypeTrousers/Applied-Energistics-2/releases) for the compiled jars.
and
https://github.com/PrototypeTrousers/Applied-Energistics-2/releases for the compiled jars.
# Applied Energistics 2 (PrototypeTrousers fork for Omnifactory) # Applied Energistics 2 (PrototypeTrousers fork for Omnifactory)
## About ## About
A Mod about Matter, Energy and using them to conquer the world.
A Mod about Matter, Energy and using them to conquer the world.. ## RecipeStages
You need to add the following into a CraftTweaker script:
```
mods.recipestages.Recipes.setPackageStage("appeng", allStages);
```
The second argument allows you to customize which stages exactly you want to be craftable with AE2. Idk why would you like to restrict any, but you can.
## License ## License
* Applied Energistics 2 API * Applied Energistics 2 API
- (c) 2013 - 2018 AlgorithmX2 et al - (c) 2013 - 2018 AlgorithmX2 et al
- [![License](https://img.shields.io/badge/License-MIT-red.svg?style=flat-square)](http://opensource.org/licenses/MIT) - [![License](https://img.shields.io/badge/License-MIT-red.svg?style=flat-square)](http://opensource.org/licenses/MIT)
@@ -25,7 +29,6 @@ A Mod about Matter, Energy and using them to conquer the world..
- [![License](https://img.shields.io/badge/License-No%20Restriction-green.svg?style=flat-square)](https://creativecommons.org/publicdomain/zero/1.0/) - [![License](https://img.shields.io/badge/License-No%20Restriction-green.svg?style=flat-square)](https://creativecommons.org/publicdomain/zero/1.0/)
## Credits ## Credits
Thanks to Thanks to
* Notch et al for Minecraft * Notch et al for Minecraft
+1
View File
@@ -21,6 +21,7 @@ buildscript {
mavenLocal() mavenLocal()
jcenter() jcenter()
mavenCentral() mavenCentral()
maven { maven {
name = "forge" name = "forge"
url = "http://files.minecraftforge.net/maven" url = "http://files.minecraftforge.net/maven"
+1 -3
View File
@@ -4,7 +4,7 @@ aebuild=7
aegroup=appeng aegroup=appeng
aebasename=appliedenergistics2 aebasename=appliedenergistics2
extended=extended_life extended=extended_life
extendedversion=v0.54.2 extendedversion=v0.54.16
######################################################### #########################################################
# Versions # # Versions #
######################################################### #########################################################
@@ -24,8 +24,6 @@ ic2_version=2.8.73-ex112
top_version=1.12-1.4.23-16 top_version=1.12-1.4.23-16
cofhcore_version=1.12.2-4.5.2.19 cofhcore_version=1.12.2-4.5.2.19
crafttweaker_version=4.1.8.9 crafttweaker_version=4.1.8.9
inventorytweaks_version=1.63
bogosorter_version=1.1.0
ctm_version=MC1.12.2-0.3.1.16 ctm_version=MC1.12.2-0.3.1.16
forestry_version=5.8.2.387 forestry_version=5.8.2.387
######################################################### #########################################################
+9 -3
View File
@@ -23,10 +23,12 @@ repositories {
url "https://cursemaven.com" url "https://cursemaven.com"
} }
/*
maven { maven {
name = "CurseForge" name = "CurseForge"
url = "https://minecraft.curseforge.com/api/maven/" url = "https://minecraft.curseforge.com/api/maven/"
} }
*/
maven { maven {
name "Mobius" name "Mobius"
@@ -83,6 +85,8 @@ dependencies {
// installable runtime dependencies // installable runtime dependencies
deobfCompile "curse.maven:gregtechceu-557242:3949406" deobfCompile "curse.maven:gregtechceu-557242:3949406"
compileOnly "curse.maven:chisel-235279:2915375"
//mods "mcp.mobius.waila:Hwyla:${hwyla_version}" //mods "mcp.mobius.waila:Hwyla:${hwyla_version}"
mods "curse.maven:hwyla-253449:2568751" mods "curse.maven:hwyla-253449:2568751"
mods "net.industrial-craft:industrialcraft-2:${ic2_version}:dev" mods "net.industrial-craft:industrialcraft-2:${ic2_version}:dev"
@@ -95,18 +99,20 @@ dependencies {
//Code chicken lib, GTCE dependency //Code chicken lib, GTCE dependency
deobfCompile "curse.maven:CCL-242818:2779848" deobfCompile "curse.maven:CCL-242818:2779848"
compileOnly "curse.maven:recipe-stages-280554:3405072"
compileOnly "curse.maven:item-stages-280316:2696769"
compileOnly "curse.maven:game-stages-268655:2951844"
compileOnly "net.darkhax.tesla:Tesla-1.12.2:${tesla_version}" compileOnly "net.darkhax.tesla:Tesla-1.12.2:${tesla_version}"
compileOnly "net.industrial-craft:industrialcraft-2:${ic2_version}:api" compileOnly "net.industrial-craft:industrialcraft-2:${ic2_version}:api"
compileOnly "mcjty.theoneprobe:TheOneProbe-1.12:${top_version}:api" compileOnly "mcjty.theoneprobe:TheOneProbe-1.12:${top_version}:api"
compileOnly "cofh:CoFHCore:${cofhcore_version}:deobf" compileOnly "cofh:CoFHCore:${cofhcore_version}:deobf"
compileOnly "CraftTweaker2:CraftTweaker2-API:${crafttweaker_version}" compileOnly "CraftTweaker2:CraftTweaker2-API:${crafttweaker_version}"
compileOnly "inventory-tweaks:InventoryTweaks:${inventorytweaks_version}:api" compileOnly "curse.maven:inventory-tweaks-223094:2482482"
compileOnly "inventory-bogo-sorter:bogosorter:${bogosorter_version}" compileOnly "curse.maven:inventory-bogo-sorter-632327:3975184"
compileOnly "team.chisel.ctm:CTM:${ctm_version}" compileOnly "team.chisel.ctm:CTM:${ctm_version}"
compileOnly "de.ellpeck.actuallyadditions:ActuallyAdditions:1.12.2-r152.16:api" compileOnly "de.ellpeck.actuallyadditions:ActuallyAdditions:1.12.2-r152.16:api"
deobfCompile "net.sengir.forestry:forestry_${minecraft_version}:$forestry_version" deobfCompile "net.sengir.forestry:forestry_${minecraft_version}:$forestry_version"
// at runtime, use the full JEI jar // at runtime, use the full JEI jar
runtime "mezz.jei:jei_${minecraft_version}:${jei_version}" runtime "mezz.jei:jei_${minecraft_version}:${jei_version}"
@@ -39,7 +39,7 @@ import appeng.api.storage.IStorageChannel;
* - For fluids: AEApi.instance().storage().getStorageChannel( IFluidStorageChannel.class).createList() * - For fluids: AEApi.instance().storage().getStorageChannel( IFluidStorageChannel.class).createList()
* - Replace with the corresponding {@link IStorageChannel} type for non native channels * - Replace with the corresponding {@link IStorageChannel} type for non native channels
*/ */
public interface IItemList<T extends IAEStack<T>> extends IItemContainer<T>, Iterable<T>, Cloneable public interface IItemList<T extends IAEStack<T>> extends IItemContainer<T>, Iterable<T>
{ {
/** /**
@@ -85,9 +85,4 @@ public interface IItemList<T extends IAEStack<T>> extends IItemContainer<T>, Ite
* resets stack sizes to 0. * resets stack sizes to 0.
*/ */
void resetStatus(); void resetStatus();
}
/**
* create a copy of this list.
*/
IItemList<T> clone();
}
@@ -44,6 +44,7 @@ import appeng.tile.networking.TileCableBusTESR;
import appeng.util.Platform; import appeng.util.Platform;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.block.properties.IProperty; import net.minecraft.block.properties.IProperty;
import net.minecraft.block.state.BlockFaceShape;
import net.minecraft.block.state.BlockStateContainer; import net.minecraft.block.state.BlockStateContainer;
import net.minecraft.block.state.IBlockState; import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
@@ -413,6 +414,30 @@ public class BlockCableBus extends AEBaseTileBlock implements IAEFacade {
return world.getBlockState(pos); return world.getBlockState(pos);
} }
@Override
public BlockFaceShape getBlockFaceShape(IBlockAccess world, IBlockState state, BlockPos pos, EnumFacing side) {
IFacadeContainer container = this.fc(world, pos);
if (container != null) {
IFacadePart facade = container.getFacade(AEPartLocation.fromFacing(side));
if (facade != null) {
return BlockFaceShape.SOLID;
}
}
return BlockFaceShape.UNDEFINED;
}
@Override
public void onEntityWalk(World world, BlockPos pos, Entity entityIn) {
IFacadeContainer container = this.fc(world, pos);
if (container != null) {
IFacadePart facade = container.getFacade(AEPartLocation.fromFacing(EnumFacing.UP));
if (facade != null) {
facade.getBlockState().getBlock().onEntityWalk(world, pos, entityIn);
}
}
super.onEntityWalk(world, pos, entityIn);
}
public static Class<? extends AEBaseTile> getNoTesrTile() { public static Class<? extends AEBaseTile> getNoTesrTile() {
return noTesrTile; return noTesrTile;
} }
@@ -23,6 +23,7 @@ import appeng.api.parts.CableRenderMode;
import appeng.api.util.AEColor; import appeng.api.util.AEColor;
import appeng.block.AEBaseBlock; import appeng.block.AEBaseBlock;
import appeng.client.gui.AEBaseGui; import appeng.client.gui.AEBaseGui;
import appeng.client.render.crafting.ItemEncodedPatternBakedModel;
import appeng.client.render.effects.*; import appeng.client.render.effects.*;
import appeng.client.render.model.UVLModelLoader; import appeng.client.render.model.UVLModelLoader;
import appeng.client.render.tesr.InscriberTESR; import appeng.client.render.tesr.InscriberTESR;
@@ -30,6 +31,7 @@ import appeng.client.render.textures.ParticleTextures;
import appeng.container.interfaces.IJEIGhostIngredients; import appeng.container.interfaces.IJEIGhostIngredients;
import appeng.core.AEConfig; import appeng.core.AEConfig;
import appeng.core.AELog; import appeng.core.AELog;
import appeng.core.Api;
import appeng.core.AppEng; import appeng.core.AppEng;
import appeng.core.sync.network.NetworkHandler; import appeng.core.sync.network.NetworkHandler;
import appeng.core.sync.packets.PacketAssemblerAnimation; import appeng.core.sync.packets.PacketAssemblerAnimation;
@@ -96,6 +98,9 @@ public class ClientHelper extends ServerHelper {
ClientRegistry.registerKeyBinding(binding); ClientRegistry.registerKeyBinding(binding);
this.bindings.put(key, binding); this.bindings.put(key, binding);
} }
Api.INSTANCE.definitions().items().encodedPattern().maybeItem().ifPresent(pattern ->
Minecraft.getMinecraft().getItemColors().registerItemColorHandler(ItemEncodedPatternBakedModel.PATTERN_ITEM_COLOR_HANDLER, pattern));
} }
@SubscribeEvent @SubscribeEvent
+32 -1
View File
@@ -39,6 +39,7 @@ import appeng.core.sync.packets.PacketSwapSlots;
import appeng.fluids.client.render.FluidStackSizeRenderer; import appeng.fluids.client.render.FluidStackSizeRenderer;
import appeng.fluids.container.slots.IMEFluidSlot; import appeng.fluids.container.slots.IMEFluidSlot;
import appeng.helpers.InventoryAction; import appeng.helpers.InventoryAction;
import appeng.items.misc.ItemEncodedPattern;
import appeng.util.Platform; import appeng.util.Platform;
import appeng.util.item.AEItemStack; import appeng.util.item.AEItemStack;
import com.google.common.base.Joiner; import com.google.common.base.Joiner;
@@ -897,7 +898,37 @@ public abstract class AEBaseGui extends GuiContainer implements IMTModGuiContain
} }
} }
if (s instanceof SlotPlayerInv || s instanceof SlotPlayerHotBar) { if (s instanceof SlotPlayerInv || s instanceof SlotPlayerHotBar) {
super.drawSlot(s); if (!is.isEmpty() && is.getItem() instanceof ItemEncodedPattern) {
final ItemEncodedPattern iep = (ItemEncodedPattern) is.getItem();
final ItemStack out = iep.getOutput(is);
if (!out.isEmpty()) {
AppEngSlot appEngSlot = ((AppEngSlot) s);
appEngSlot.setDisplay(true);
appEngSlot.setReturnAsSingleStack(true);
this.zLevel = 100.0F;
this.itemRender.zLevel = 100.0F;
if (!this.isPowered()) {
drawRect(s.xPos, s.yPos, 16 + s.xPos, 16 + s.yPos, 0x66111111);
}
this.zLevel = 0.0F;
this.itemRender.zLevel = 0.0F;
// Annoying but easier than trying to splice into render item
super.drawSlot(s);
if (isShiftKeyDown()) {
this.stackSizeRenderer.renderStackSize(this.fontRenderer, AEItemStack.fromItemStack(out), s.xPos, s.yPos);
} else {
super.drawSlot(s);
}
return;
}
} else {
super.drawSlot(s);
}
} else if (s instanceof AppEngSlot) { } else if (s instanceof AppEngSlot) {
AppEngSlot appEngSlot = ((AppEngSlot) s); AppEngSlot appEngSlot = ((AppEngSlot) s);
appEngSlot.setDisplay(true); appEngSlot.setDisplay(true);
@@ -35,6 +35,7 @@ import appeng.core.localization.GuiText;
import appeng.core.sync.network.NetworkHandler; import appeng.core.sync.network.NetworkHandler;
import appeng.core.sync.packets.PacketInventoryAction; import appeng.core.sync.packets.PacketInventoryAction;
import appeng.fluids.client.gui.widgets.GuiFluidTank; import appeng.fluids.client.gui.widgets.GuiFluidTank;
import appeng.fluids.helper.DualityFluidInterface;
import appeng.fluids.util.AEFluidStack; import appeng.fluids.util.AEFluidStack;
import appeng.helpers.InventoryAction; import appeng.helpers.InventoryAction;
import appeng.parts.reporting.PartFluidInterfaceConfigurationTerminal; import appeng.parts.reporting.PartFluidInterfaceConfigurationTerminal;
@@ -155,7 +156,7 @@ public class GuiFluidInterfaceConfigurationTerminal extends AEBaseGui implements
int extraLines = numUpgradesMap.get(inv); int extraLines = numUpgradesMap.get(inv);
for (int row = 0; row < 1 + extraLines && linesDraw < LINES_ON_PAGE; ++row) { for (int row = 0; row < 1 + extraLines && linesDraw < LINES_ON_PAGE; ++row) {
for (int z = 0; z < 5; z++) { for (int z = 0; z < DualityFluidInterface.NUMBER_OF_TANKS; z++) {
GuiFluidTank tankSlot; GuiFluidTank tankSlot;
if (!matchedInterfaces.contains(inv) && !this.matchedStacks.contains(inv.getInventory().getFluidInSlot(z + (row * 5)))) { if (!matchedInterfaces.contains(inv) && !this.matchedStacks.contains(inv.getInventory().getFluidInSlot(z + (row * 5)))) {
tankSlot = new GuiFluidTank(inv.getInventory(), z + (row * 5), z + (row * 5), (z * 18 + 22), offset, 16, 16, true); tankSlot = new GuiFluidTank(inv.getInventory(), z + (row * 5), z + (row * 5), (z * 18 + 22), offset, 16, 16, true);
@@ -243,7 +244,7 @@ public class GuiFluidInterfaceConfigurationTerminal extends AEBaseGui implements
final Object lineObj = this.lines.get(ex + x); final Object lineObj = this.lines.get(ex + x);
if (lineObj instanceof ClientDCInternalFluidInv) { if (lineObj instanceof ClientDCInternalFluidInv) {
GlStateManager.color(1, 1, 1, 1); GlStateManager.color(1, 1, 1, 1);
final int width = 5 * 18; final int width = DualityFluidInterface.NUMBER_OF_TANKS * 18;
int extraLines = numUpgradesMap.get(lineObj); int extraLines = numUpgradesMap.get(lineObj);
@@ -447,7 +448,7 @@ public class GuiFluidInterfaceConfigurationTerminal extends AEBaseGui implements
ClientDCInternalFluidInv o = this.byId.get(id); ClientDCInternalFluidInv o = this.byId.get(id);
if (o == null) { if (o == null) {
this.byId.put(id, o = new ClientDCInternalFluidInv(5, id, sortBy, string, 1000)); this.byId.put(id, o = new ClientDCInternalFluidInv(DualityFluidInterface.NUMBER_OF_TANKS, id, sortBy, string, 1000));
this.refreshList = true; this.refreshList = true;
} }
@@ -103,7 +103,6 @@ public class GuiMEMonitorable extends AEBaseMEGui implements ISortSource, IConfi
private int currentMouseY = 0; private int currentMouseY = 0;
private boolean delayedUpdate; private boolean delayedUpdate;
private boolean updateView = true;
protected int jeiOffset = Loader.isModLoaded("jei") ? 24 : 0; protected int jeiOffset = Loader.isModLoaded("jei") ? 24 : 0;
public GuiMEMonitorable(final InventoryPlayer inventoryPlayer, final ITerminalHost te) { public GuiMEMonitorable(final InventoryPlayer inventoryPlayer, final ITerminalHost te) {
@@ -162,7 +161,8 @@ public class GuiMEMonitorable extends AEBaseMEGui implements ISortSource, IConfi
} }
if (!this.delayedUpdate) { if (!this.delayedUpdate) {
this.updateView = true; this.repo.updateView();
this.setScrollBar();
} }
} }
@@ -319,7 +319,8 @@ public class GuiMEMonitorable extends AEBaseMEGui implements ISortSource, IConfi
this.searchField.setText(memoryText); this.searchField.setText(memoryText);
this.searchField.selectAll(); this.searchField.selectAll();
this.repo.setSearchString(memoryText); this.repo.setSearchString(memoryText);
this.updateView = true; this.repo.updateView();
this.setScrollBar();
} }
craftingGridOffsetX = Integer.MAX_VALUE; craftingGridOffsetX = Integer.MAX_VALUE;
@@ -380,7 +381,8 @@ public class GuiMEMonitorable extends AEBaseMEGui implements ISortSource, IConfi
if (btn == 1 && this.searchField.isMouseIn(xCoord, yCoord)) { if (btn == 1 && this.searchField.isMouseIn(xCoord, yCoord)) {
this.searchField.setText(""); this.searchField.setText("");
this.repo.setSearchString(""); this.repo.setSearchString("");
this.updateView = true; this.repo.updateView();
this.setScrollBar();
} }
super.mouseClicked(xCoord, yCoord, btn); super.mouseClicked(xCoord, yCoord, btn);
@@ -474,7 +476,8 @@ public class GuiMEMonitorable extends AEBaseMEGui implements ISortSource, IConfi
if (this.searchField.textboxKeyTyped(character, key)) { if (this.searchField.textboxKeyTyped(character, key)) {
this.repo.setSearchString(this.searchField.getText()); this.repo.setSearchString(this.searchField.getText());
this.updateView = true; this.repo.updateView();
this.setScrollBar();
// tell forge the key event is handled and should not be sent out // tell forge the key event is handled and should not be sent out
this.keyHandled = mouseInGui; this.keyHandled = mouseInGui;
} else { } else {
@@ -501,7 +504,7 @@ public class GuiMEMonitorable extends AEBaseMEGui implements ISortSource, IConfi
this.delayedUpdate = false; this.delayedUpdate = false;
} }
} }
if (!this.delayedUpdate && updateView) { if (!this.delayedUpdate) {
this.repo.updateView(); this.repo.updateView();
this.setScrollBar(); this.setScrollBar();
} }
@@ -537,7 +540,7 @@ public class GuiMEMonitorable extends AEBaseMEGui implements ISortSource, IConfi
this.ViewBox.set(this.configSrc.getSetting(Settings.VIEW_MODE)); this.ViewBox.set(this.configSrc.getSetting(Settings.VIEW_MODE));
} }
this.updateView = true; this.repo.updateView();
} }
int getReservedSpace() { int getReservedSpace() {
@@ -55,8 +55,6 @@ public class GuiNetworkStatus extends AEBaseGui implements ISortSource {
private GuiImgButton units; private GuiImgButton units;
private int tooltip = -1; private int tooltip = -1;
private boolean updateView = true;
public GuiNetworkStatus(final InventoryPlayer inventoryPlayer, final INetworkTool te) { public GuiNetworkStatus(final InventoryPlayer inventoryPlayer, final INetworkTool te) {
super(new ContainerNetworkStatus(inventoryPlayer, te)); super(new ContainerNetworkStatus(inventoryPlayer, te));
final GuiScrollbar scrollbar = new GuiScrollbar(); final GuiScrollbar scrollbar = new GuiScrollbar();
@@ -208,17 +206,9 @@ public class GuiNetworkStatus extends AEBaseGui implements ISortSource {
for (final IAEItemStack is : list) { for (final IAEItemStack is : list) {
this.repo.postUpdate(is); this.repo.postUpdate(is);
} }
this.updateView = true;
}
@Override this.repo.updateView();
public void updateScreen() { this.setScrollBar();
if (updateView) {
this.repo.updateView();
this.setScrollBar();
updateView = false;
}
super.updateScreen();
} }
private void setScrollBar() { private void setScrollBar() {
+85 -116
View File
@@ -39,20 +39,19 @@ import javax.annotation.Nonnull;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import java.util.concurrent.CompletableFuture;
import java.util.regex.Pattern; import java.util.regex.Pattern;
public class ItemRepo { public class ItemRepo {
private final IItemList<IAEItemStack> list = AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class).createList(); private final IItemList<IAEItemStack> list = AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class).createList();
private final List<IAEItemStack> view; private final ArrayList<IAEItemStack> view = new ArrayList<>();
private final IScrollSource src; private final IScrollSource src;
private final ISortSource sortSrc; private final ISortSource sortSrc;
private int rowSize = 9; private int rowSize = 9;
private volatile String searchString = ""; private String searchString = "";
private IPartitionList<IAEItemStack> myPartitionList; private IPartitionList<IAEItemStack> myPartitionList;
private String innerSearch = ""; private String innerSearch = "";
private boolean hasPower; private boolean hasPower;
@@ -60,9 +59,6 @@ public class ItemRepo {
public ItemRepo(final IScrollSource src, final ISortSource sortSrc) { public ItemRepo(final IScrollSource src, final ISortSource sortSrc) {
this.src = src; this.src = src;
this.sortSrc = sortSrc; this.sortSrc = sortSrc;
this.view = Collections.synchronizedList(new ArrayList<>());
list.forEach(this.view::add);
} }
public IAEItemStack getReferenceItem(int idx) { public IAEItemStack getReferenceItem(int idx) {
@@ -99,123 +95,111 @@ public class ItemRepo {
this.updateView(); this.updateView();
} }
private CompletableFuture<Void> searchTask = null;
public void updateView() { public void updateView() {
if (searchTask != null) { this.view.clear();
return;
this.view.ensureCapacity(this.list.size());
final Enum viewMode = this.sortSrc.getSortDisplay();
final Enum searchMode = AEConfig.instance().getConfigManager().getSetting(Settings.SEARCH_MODE);
final boolean needsZeroCopy = viewMode == ViewItems.CRAFTABLE;
if (searchMode == SearchBoxMode.JEI_AUTOSEARCH || searchMode == SearchBoxMode.JEI_MANUAL_SEARCH || searchMode == SearchBoxMode.JEI_AUTOSEARCH_KEEP || searchMode == SearchBoxMode.JEI_MANUAL_SEARCH_KEEP) {
this.updateJEI(this.searchString);
} }
// Since sortSrc is final, so we can safely call it inside lambda final boolean terminalSearchToolTips = AEConfig.instance().getConfigManager().getSetting(Settings.SEARCH_TOOLTIPS) != YesNo.NO;
searchTask = CompletableFuture.supplyAsync(() -> {
IItemList<IAEItemStack> list = this.list.clone();
List<IAEItemStack> view = new ArrayList<>(list.size());
Enum viewMode = this.sortSrc.getSortDisplay();
boolean needsZeroCopy = viewMode == ViewItems.CRAFTABLE; boolean searchMod = false;
boolean terminalSearchToolTips = AEConfig.instance().getConfigManager().getSetting(Settings.SEARCH_TOOLTIPS) != YesNo.NO; this.innerSearch = searchString.toLowerCase();
if (this.innerSearch.startsWith("@")) {
searchMod = true;
this.innerSearch = this.innerSearch.substring(1);
}
boolean searchMod = false; Pattern m = null;
try {
String innerSearch = searchString.toLowerCase(); m = Pattern.compile(this.innerSearch, Pattern.CASE_INSENSITIVE);
if (innerSearch.startsWith("@")) { } catch (final Throwable ignore) {
searchMod = true;
innerSearch = innerSearch.substring(1);
}
Pattern m = null;
try { try {
m = Pattern.compile(innerSearch, Pattern.CASE_INSENSITIVE); m = Pattern.compile(Pattern.quote(this.innerSearch), Pattern.CASE_INSENSITIVE);
} catch (final Throwable ignore) { } catch (final Throwable __) {
try { return;
m = Pattern.compile(Pattern.quote(innerSearch), Pattern.CASE_INSENSITIVE); }
} catch (final Throwable __) { }
return Collections.<IAEItemStack>emptyList();
boolean notDone = false;
for (IAEItemStack is : this.list) {
if (this.myPartitionList != null) {
if (!this.myPartitionList.isListed(is)) {
continue;
} }
} }
if (viewMode == ViewItems.CRAFTABLE && !is.isCraftable()) {
continue;
}
for (IAEItemStack is : list) { if (viewMode == ViewItems.STORED && is.getStackSize() == 0) {
if (this.myPartitionList != null) { continue;
if (!this.myPartitionList.isListed(is)) { }
continue;
}
}
if (viewMode == ViewItems.CRAFTABLE && !is.isCraftable()) { final String dspName = (searchMod ? Platform.getModId(is) : Platform.getItemDisplayName(is)).toLowerCase();
continue; boolean foundMatchingItemStack = true;
}
if (viewMode == ViewItems.STORED && is.getStackSize() == 0) { for (String term : innerSearch.split(" ")) {
continue; if (term.length() > 1 && (term.startsWith("-") || term.startsWith("!"))) {
} term = term.substring(1);
if (dspName.contains(term)) {
final String dspName = (searchMod ? Platform.getModId(is) : Platform.getItemDisplayName(is)).toLowerCase();
boolean foundMatchingItemStack = true;
for (String term : innerSearch.split(" ")) {
if (term.length() > 1 && (term.startsWith("-") || term.startsWith("!"))) {
term = term.substring(1);
if (dspName.contains(term)) {
foundMatchingItemStack = false;
break;
}
} else if (!dspName.contains(term)) {
foundMatchingItemStack = false; foundMatchingItemStack = false;
break; break;
} }
} } else if (!dspName.contains(term)) {
foundMatchingItemStack = false;
if (terminalSearchToolTips && !foundMatchingItemStack) { break;
final List<String> tooltip = Platform.getTooltip(is);
for (final String line : tooltip) {
if (m.matcher(line).find()) {
foundMatchingItemStack = true;
break;
}
}
}
if (foundMatchingItemStack) {
if (needsZeroCopy) {
is = is.copy();
is.setStackSize(0);
}
view.add(is);
} }
} }
final Enum SortBy = this.sortSrc.getSortBy(); if (terminalSearchToolTips && !foundMatchingItemStack) {
final Enum SortDir = this.sortSrc.getSortDir(); final List<String> tooltip = Platform.getTooltip(is);
for (final String line : tooltip) {
ItemSorters.setDirection((appeng.api.config.SortDir) SortDir); if (m.matcher(line).find()) {
ItemSorters.init(); foundMatchingItemStack = true;
break;
if (SortBy == SortOrder.MOD) { }
view.sort(ItemSorters.CONFIG_BASED_SORT_BY_MOD);
} else if (SortBy == SortOrder.AMOUNT) {
view.sort(ItemSorters.CONFIG_BASED_SORT_BY_SIZE);
} else if (SortBy == SortOrder.INVTWEAKS) {
if (InventoryBogoSortModule.isLoaded()) {
Collections.sort(this.view, InventoryBogoSortModule.COMPARATOR);
} else {
Collections.sort(this.view, ItemSorters.CONFIG_BASED_SORT_BY_INV_TWEAKS);
} }
}
if (foundMatchingItemStack) {
if (needsZeroCopy) {
is = is.copy();
is.setStackSize(0);
}
this.view.add(is);
}
}
final Enum SortBy = this.sortSrc.getSortBy();
final Enum SortDir = this.sortSrc.getSortDir();
ItemSorters.setDirection((appeng.api.config.SortDir) SortDir);
ItemSorters.init();
if (SortBy == SortOrder.MOD) {
Collections.sort(this.view, ItemSorters.CONFIG_BASED_SORT_BY_MOD);
} else if (SortBy == SortOrder.AMOUNT) {
Collections.sort(this.view, ItemSorters.CONFIG_BASED_SORT_BY_SIZE);
} else if (SortBy == SortOrder.INVTWEAKS) {
if (InventoryBogoSortModule.isLoaded()) {
Collections.sort(this.view, InventoryBogoSortModule.COMPARATOR);
} else { } else {
view.sort(ItemSorters.CONFIG_BASED_SORT_BY_NAME); Collections.sort(this.view, ItemSorters.CONFIG_BASED_SORT_BY_INV_TWEAKS);
} }
} else {
return view; Collections.sort(this.view, ItemSorters.CONFIG_BASED_SORT_BY_NAME);
}).thenAcceptAsync(view -> { }
this.view.clear();
this.view.addAll(view);
}).thenRunAsync(() -> {
this.searchTask = null; // Prevent redundant cancellation
});
} }
private void updateJEI(String filter) { private void updateJEI(String filter) {
@@ -227,10 +211,6 @@ public class ItemRepo {
} }
public void clear() { public void clear() {
if (searchTask != null) {
searchTask.cancel(true);
searchTask = null;
}
this.list.resetStatus(); this.list.resetStatus();
} }
@@ -256,17 +236,6 @@ public class ItemRepo {
public void setSearchString(@Nonnull final String searchString) { public void setSearchString(@Nonnull final String searchString) {
this.searchString = searchString; this.searchString = searchString;
if (searchTask != null) {
searchTask.cancel(true);
searchTask = null;
}
// Passive JEI auto search
final Enum<?> searchMode = AEConfig.instance().getConfigManager().getSetting(Settings.SEARCH_MODE);
if (searchMode == SearchBoxMode.JEI_AUTOSEARCH || searchMode == SearchBoxMode.JEI_MANUAL_SEARCH || searchMode == SearchBoxMode.JEI_AUTOSEARCH_KEEP || searchMode == SearchBoxMode.JEI_MANUAL_SEARCH_KEEP) {
this.updateJEI(this.searchString);
}
} }
public IItemList<IAEItemStack> getList() { public IItemList<IAEItemStack> getList() {
@@ -5,11 +5,11 @@ import appeng.items.misc.ItemEncodedPattern;
import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableMap;
import net.minecraft.block.state.IBlockState; import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.GlStateManager;
import net.minecraft.client.renderer.block.model.BakedQuad; import net.minecraft.client.renderer.block.model.BakedQuad;
import net.minecraft.client.renderer.block.model.IBakedModel; import net.minecraft.client.renderer.block.model.IBakedModel;
import net.minecraft.client.renderer.block.model.ItemCameraTransforms; import net.minecraft.client.renderer.block.model.ItemCameraTransforms;
import net.minecraft.client.renderer.block.model.ItemOverrideList; import net.minecraft.client.renderer.block.model.ItemOverrideList;
import net.minecraft.client.renderer.color.IItemColor;
import net.minecraft.client.renderer.texture.TextureAtlasSprite; import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.entity.EntityLivingBase; import net.minecraft.entity.EntityLivingBase;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
@@ -32,13 +32,22 @@ import java.util.List;
* the pattern is being * the pattern is being
* rendered in the GUI, and not anywhere else. * rendered in the GUI, and not anywhere else.
*/ */
class ItemEncodedPatternBakedModel implements IBakedModel { public class ItemEncodedPatternBakedModel implements IBakedModel {
private final IBakedModel baseModel; private final IBakedModel baseModel;
private final ImmutableMap<ItemCameraTransforms.TransformType, TRSRTransformation> transforms; private final ImmutableMap<ItemCameraTransforms.TransformType, TRSRTransformation> transforms;
private final CustomOverrideList overrides; private final CustomOverrideList overrides;
public static final IItemColor PATTERN_ITEM_COLOR_HANDLER = (stack, tintIndex) -> {
ItemEncodedPattern iep = (ItemEncodedPattern) stack.getItem();
ItemStack output = iep.getOutput(stack);
if (!output.isEmpty() && isShiftKeyDown()) {
return Minecraft.getMinecraft().getItemColors().colorMultiplier(output, tintIndex);
}
return 0xFFFFFF;
};
ItemEncodedPatternBakedModel(IBakedModel baseModel, ImmutableMap<ItemCameraTransforms.TransformType, TRSRTransformation> transforms) { ItemEncodedPatternBakedModel(IBakedModel baseModel, ImmutableMap<ItemCameraTransforms.TransformType, TRSRTransformation> transforms) {
this.baseModel = baseModel; this.baseModel = baseModel;
this.transforms = transforms; this.transforms = transforms;
@@ -90,88 +99,8 @@ class ItemEncodedPatternBakedModel implements IBakedModel {
return PerspectiveMapWrapper.handlePerspective(this, this.transforms, cameraTransformType); return PerspectiveMapWrapper.handlePerspective(this, this.transforms, cameraTransformType);
} }
/** private static boolean isShiftKeyDown() {
* Since the ItemOverrideList handling comes before handling the perspective awareness (which is the first place return Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT);
* where we
* know how we are being rendered) we need to remember the model of the crafting output, and make the decision on
* which to render later on.
* Sadly, Forge is pretty inconsistent when it will call the handlePerspective method, so some methods are called
* even on this interim-model.
* Usually those methods only matter for rendering on the ground and other cases, where we wouldn't render the
* crafting output model anyway,
* so in those cases we delegate to the model of the encoded pattern.
*/
private class ShiftHoldingModelWrapper implements IBakedModel {
private final IBakedModel outputModel;
private ShiftHoldingModelWrapper(IBakedModel outputModel) {
this.outputModel = outputModel;
}
@Override
public Pair<? extends IBakedModel, Matrix4f> handlePerspective(ItemCameraTransforms.TransformType cameraTransformType) {
final IBakedModel selectedModel;
// No need to re-check for shift being held since this model is only handed out in that case
if (cameraTransformType == ItemCameraTransforms.TransformType.GUI) {
selectedModel = this.outputModel;
} else {
selectedModel = ItemEncodedPatternBakedModel.this.baseModel;
}
// Now retroactively handle the isGui3d call, for which we always return false below
if (selectedModel.isGui3d() != ItemEncodedPatternBakedModel.this.baseModel.isGui3d()) {
GlStateManager.enableLighting();
}
if (selectedModel instanceof IBakedModel) {
return selectedModel.handlePerspective(cameraTransformType);
}
return PerspectiveMapWrapper.handlePerspective(this, ItemEncodedPatternBakedModel.this.transforms, cameraTransformType);
}
@Override
public List<BakedQuad> getQuads(@Nullable IBlockState state, @Nullable EnumFacing side, long rand) {
// This may be called for items on the ground, in which case we will always fall back to the pattern
return ItemEncodedPatternBakedModel.this.baseModel.getQuads(state, side, rand);
}
@Override
public boolean isAmbientOcclusion() {
return ItemEncodedPatternBakedModel.this.baseModel.isAmbientOcclusion();
}
@Override
public boolean isGui3d() {
// NOTE: Sadly, Forge will let Minecraft call this method before handling the perspective awareness
return ItemEncodedPatternBakedModel.this.baseModel.isGui3d();
}
@Override
public boolean isBuiltInRenderer() {
// This may be called for items on the ground, in which case we will always fall back to the pattern
return ItemEncodedPatternBakedModel.this.baseModel.isBuiltInRenderer();
}
@Override
public TextureAtlasSprite getParticleTexture() {
// This may be called for items on the ground, in which case we will always fall back to the pattern
return ItemEncodedPatternBakedModel.this.baseModel.getParticleTexture();
}
@Override
public ItemCameraTransforms getItemCameraTransforms() {
// This may be called for items on the ground, in which case we will always fall back to the pattern
return ItemEncodedPatternBakedModel.this.baseModel.getItemCameraTransforms();
}
@Override
public ItemOverrideList getOverrides() {
// This may be called for items on the ground, in which case we will always fall back to the pattern
return ItemEncodedPatternBakedModel.this.baseModel.getOverrides();
}
} }
/** /**
@@ -188,15 +117,11 @@ class ItemEncodedPatternBakedModel implements IBakedModel {
@Override @Override
public IBakedModel handleItemState(IBakedModel originalModel, ItemStack stack, World world, EntityLivingBase entity) { public IBakedModel handleItemState(IBakedModel originalModel, ItemStack stack, World world, EntityLivingBase entity) {
boolean shiftHeld = Keyboard.isKeyDown(Keyboard.KEY_LSHIFT) || Keyboard.isKeyDown(Keyboard.KEY_RSHIFT); if (isShiftKeyDown()) {
if (shiftHeld) {
ItemEncodedPattern iep = (ItemEncodedPattern) stack.getItem(); ItemEncodedPattern iep = (ItemEncodedPattern) stack.getItem();
ItemStack output = iep.getOutput(stack); ItemStack output = iep.getOutput(stack);
if (!output.isEmpty()) { if (!output.isEmpty()) {
IBakedModel realModel = Minecraft.getMinecraft().getRenderItem().getItemModelMesher().getItemModel(output); return Minecraft.getMinecraft().getRenderItem().getItemModelWithOverrides(output, world, entity);
// Give the item model a chance to handle the overrides as well
realModel = realModel.getOverrides().handleItemState(realModel, output, world, entity);
return new ShiftHoldingModelWrapper(realModel);
} }
} }
@@ -404,7 +404,7 @@ public abstract class AEBaseContainer extends Container {
if (tis.getCount() <= 0) { if (tis.getCount() <= 0) {
clickSlot.putStack(ItemStack.EMPTY); clickSlot.putStack(ItemStack.EMPTY);
d.onSlotChanged(); d.onSlotChanged();
this.updateSlot(clickSlot); this.updateSlot(clickSlot);
this.updateSlot(d); this.updateSlot(d);
return ItemStack.EMPTY; return ItemStack.EMPTY;
@@ -423,42 +423,7 @@ public abstract class AEBaseContainer extends Container {
} }
if (d.isItemValid(tis)) { if (d.isItemValid(tis)) {
if (d.getHasStack()) { if (!d.getHasStack()) {
final ItemStack t = d.getStack().copy();
if (Platform.itemComparisons().isSameItem(t, tis)) {
int maxSize = t.getMaxStackSize();
if (d.getSlotStackLimit() < maxSize) {
maxSize = d.getSlotStackLimit();
}
int placeAble = maxSize - t.getCount();
if (tis.getCount() < placeAble) {
placeAble = tis.getCount();
}
t.setCount(t.getCount() + placeAble);
tis.setCount(tis.getCount() - placeAble);
d.putStack(t);
if (tis.getCount() <= 0) {
clickSlot.putStack(ItemStack.EMPTY);
d.onSlotChanged();
// if ( worldEntity != null )
// worldEntity.markDirty();
// if ( hasMETiles ) updateClient();
this.updateSlot(clickSlot);
this.updateSlot(d);
return ItemStack.EMPTY;
} else {
this.updateSlot(d);
}
}
} else {
int maxSize = tis.getMaxStackSize(); int maxSize = tis.getMaxStackSize();
if (maxSize > d.getSlotStackLimit()) { if (maxSize > d.getSlotStackLimit()) {
maxSize = d.getSlotStackLimit(); maxSize = d.getSlotStackLimit();
@@ -476,10 +441,6 @@ public abstract class AEBaseContainer extends Container {
clickSlot.putStack(ItemStack.EMPTY); clickSlot.putStack(ItemStack.EMPTY);
d.onSlotChanged(); d.onSlotChanged();
// if ( worldEntity != null )
// worldEntity.markDirty();
// if ( hasMETiles ) updateClient();
this.updateSlot(clickSlot); this.updateSlot(clickSlot);
this.updateSlot(d); this.updateSlot(d);
return ItemStack.EMPTY; return ItemStack.EMPTY;
@@ -28,8 +28,13 @@ import appeng.container.guisync.GuiSync;
import appeng.container.slot.*; import appeng.container.slot.*;
import appeng.helpers.DualityInterface; import appeng.helpers.DualityInterface;
import appeng.helpers.IInterfaceHost; import appeng.helpers.IInterfaceHost;
import appeng.tile.inventory.AppEngInternalInventory;
import appeng.tile.inventory.AppEngInternalOversizedInventory;
import appeng.util.Platform; import appeng.util.Platform;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.ClickType;
import net.minecraft.item.ItemStack;
public class ContainerInterface extends ContainerUpgradeable implements IOptionalSlotHost { public class ContainerInterface extends ContainerUpgradeable implements IOptionalSlotHost {
@@ -62,10 +67,23 @@ public class ContainerInterface extends ContainerUpgradeable implements IOptiona
} }
for (int x = 0; x < DualityInterface.NUMBER_OF_STORAGE_SLOTS; x++) { for (int x = 0; x < DualityInterface.NUMBER_OF_STORAGE_SLOTS; x++) {
this.addSlotToContainer(new SlotNormal(this.myDuality.getStorage(), x, 8 + 18 * x, 35 + 18)); this.addSlotToContainer(new SlotOversized(this.myDuality.getStorage(), x, 8 + 18 * x, 35 + 18));
} }
} }
@Override
public ItemStack slotClick(int slotId, int dragType, ClickType clickTypeIn, EntityPlayer player) {
if (slotId >= 0 && slotId < this.inventorySlots.size()) {
if (this.inventorySlots.get(slotId) instanceof SlotOversized) {
((AppEngInternalOversizedInventory) ((SlotOversized) this.inventorySlots.get(slotId)).getItemHandler()).limitExtraction(true);
ItemStack ret = super.slotClick(slotId, dragType, clickTypeIn, player);
((AppEngInternalOversizedInventory) ((SlotOversized) this.inventorySlots.get(slotId)).getItemHandler()).limitExtraction(false);
return ret;
}
}
return super.slotClick(slotId, dragType, clickTypeIn, player);
}
@Override @Override
protected int getHeight() { protected int getHeight() {
return 256; return 256;
@@ -311,7 +311,7 @@ public final class ContainerInterfaceConfigurationTerminal extends AEBaseContain
if (!is.isEmpty()) { if (!is.isEmpty()) {
is.writeToNBT(itemNBT); is.writeToNBT(itemNBT);
if (is.getCount() > is.getMaxStackSize()) { if (is.getCount() > Byte.MAX_VALUE) {
itemNBT.setInteger("stackSize", is.getCount()); itemNBT.setInteger("stackSize", is.getCount());
} }
} }
@@ -527,7 +527,7 @@ public abstract class ContainerPatternEncoder extends ContainerMEMonitorable imp
if (!i.isEmpty()) { if (!i.isEmpty()) {
i.writeToNBT(c); i.writeToNBT(c);
if (i.getCount() > i.getMaxStackSize()) { if (i.getCount() > Byte.MAX_VALUE) {
c.setInteger("stackSize", i.getCount()); c.setInteger("stackSize", i.getCount());
} }
} }
@@ -136,7 +136,7 @@ public class AppEngSlot extends Slot {
@Override @Override
public void onSlotChanged() { public void onSlotChanged() {
this.setIsValid(hasCalculatedValidness.NotAvailable); this.setIsValid(hasCalculatedValidness.NotAvailable);
if (this.isSlotEnabled()) { if (this.isSlotEnabled() && this.itemHandler != null) {
ItemHandlerUtil.setStackInSlot(this.itemHandler, this.index, this.getStack().copy()); ItemHandlerUtil.setStackInSlot(this.itemHandler, this.index, this.getStack().copy());
if (this.getContainer() != null) { if (this.getContainer() != null) {
@@ -40,6 +40,11 @@ import appeng.util.inv.AdaptorItemHandler;
import appeng.util.inv.WrapperCursorItemHandler; import appeng.util.inv.WrapperCursorItemHandler;
import appeng.util.inv.WrapperInvItemHandler; import appeng.util.inv.WrapperInvItemHandler;
import appeng.util.item.AEItemStack; import appeng.util.item.AEItemStack;
import com.blamejared.recipestages.RecipeStages;
import com.blamejared.recipestages.recipes.RecipeStage;
import net.darkhax.gamestages.GameStageHelper;
import net.darkhax.itemstages.ItemStages;
import net.minecraft.client.Minecraft;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.InventoryCrafting; import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.Item; import net.minecraft.item.Item;
@@ -49,8 +54,10 @@ import net.minecraft.item.crafting.IRecipe;
import net.minecraft.util.NonNullList; import net.minecraft.util.NonNullList;
import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraftforge.fml.common.Loader;
import net.minecraftforge.items.IItemHandler; import net.minecraftforge.items.IItemHandler;
import javax.annotation.Nonnull;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
@@ -90,6 +97,23 @@ public class SlotCraftingTerm extends AppEngCraftingSlot {
return is; return is;
} }
// Don't render the item client-side if the item stage for it is not unlocked yet
@Override
public ItemStack getStack() {
if (Platform.isClient() && Loader.isModLoaded("itemstages")) {
final ItemStack item = super.getStack();
final String itemsStage = ItemStages.getStage(item);
final String enchantStage = ItemStages.getEnchantStage(item);
final EntityPlayer player = Minecraft.getMinecraft().player;
if ((itemsStage != null && !GameStageHelper.hasStage(player, itemsStage))
|| (enchantStage != null && !GameStageHelper.hasStage(player, enchantStage)))
return ItemStack.EMPTY;
}
return super.getStack();
}
public void doClick(final InventoryAction action, final EntityPlayer who) { public void doClick(final InventoryAction action, final EntityPlayer who) {
if (this.getStack().isEmpty()) { if (this.getStack().isEmpty()) {
return; return;
@@ -144,17 +168,39 @@ public class SlotCraftingTerm extends AppEngCraftingSlot {
} }
// TODO: This is really hacky and NEEDS to be solved with a full container/gui refactoring. // TODO: This is really hacky and NEEDS to be solved with a full container/gui refactoring.
protected IRecipe findRecipe(InventoryCrafting ic, World world) { protected IRecipe findRecipe(InventoryCrafting ic, World world, EntityPlayer player) {
if (this.container instanceof ContainerCraftingTerm) { if (this.container instanceof ContainerCraftingTerm) {
final ContainerCraftingTerm containerTerminal = (ContainerCraftingTerm) this.container; final ContainerCraftingTerm containerTerminal = (ContainerCraftingTerm) this.container;
final IRecipe recipe = containerTerminal.getCurrentRecipe(); final IRecipe recipe = containerTerminal.getCurrentRecipe();
if (recipe != null && recipe.matches(ic, world)) { if (recipe != null && recipe.matches(ic, world)) {
return containerTerminal.getCurrentRecipe(); return handleRecipe(ic, containerTerminal.getCurrentRecipe(), player);
} }
} }
return CraftingManager.findMatchingRecipe(ic, world); return handleRecipe(ic, CraftingManager.findMatchingRecipe(ic, world), player);
}
// Returns null in case this recipe is not yet unlocked
private IRecipe handleRecipe(InventoryCrafting ic, IRecipe recipe, EntityPlayer player) {
if (Loader.isModLoaded("recipestages")) {
if (recipe instanceof RecipeStage) {
final RecipeStage staged = (RecipeStage) recipe;
if (!staged.isGoodForCrafting(ic))
return null;
}
}
if (Loader.isModLoaded("itemstages")) {
final String itemsStage = ItemStages.getStage(recipe.getRecipeOutput());
final String enchantStage = ItemStages.getEnchantStage(recipe.getRecipeOutput());
if ((itemsStage != null && !GameStageHelper.hasStage(player, itemsStage))
|| (enchantStage != null && !GameStageHelper.hasStage(player, enchantStage)))
return null;
}
return recipe;
} }
// TODO: This is really hacky and NEEDS to be solved with a full container/gui refactoring. // TODO: This is really hacky and NEEDS to be solved with a full container/gui refactoring.
@@ -192,7 +238,7 @@ public class SlotCraftingTerm extends AppEngCraftingSlot {
ic.setInventorySlotContents(x, this.getPattern().getStackInSlot(x)); ic.setInventorySlotContents(x, this.getPattern().getStackInSlot(x));
} }
final IRecipe r = this.findRecipe(ic, p.world); final IRecipe r = this.findRecipe(ic, p.world, p);
if (r == null) { if (r == null) {
final Item target = request.getItem(); final Item target = request.getItem();
@@ -0,0 +1,9 @@
package appeng.container.slot;
import net.minecraftforge.items.IItemHandler;
public class SlotOversized extends SlotNormal {
public SlotOversized(IItemHandler inv, int slot, int xPos, int yPos) {
super(inv, slot, xPos, yPos);
}
}
+1 -1
View File
@@ -72,7 +72,7 @@ public final class AppEng {
private static final String FORGE_CURRENT_VERSION = ForgeVersion.majorVersion + "." + ForgeVersion.minorVersion + "." + ForgeVersion.revisionVersion + "." + ForgeVersion.buildVersion; private static final String FORGE_CURRENT_VERSION = ForgeVersion.majorVersion + "." + ForgeVersion.minorVersion + "." + ForgeVersion.revisionVersion + "." + ForgeVersion.buildVersion;
private static final String FORGE_MAX_VERSION = (ForgeVersion.majorVersion + 1) + ".0.0.0"; private static final String FORGE_MAX_VERSION = (ForgeVersion.majorVersion + 1) + ".0.0.0";
public static final String MOD_DEPENDENCIES = "required-after:forge@[" + FORGE_CURRENT_VERSION + "," + FORGE_MAX_VERSION + ");after:ctm@[" + CTM.VERSION + ",);"; public static final String MOD_DEPENDENCIES = "required-after:forge@[" + FORGE_CURRENT_VERSION + "," + FORGE_MAX_VERSION + ");after:ctm@[" + CTM.VERSION + ",);after:itemstages;after:recipestages";
@Nonnull @Nonnull
private static final AppEng INSTANCE = new AppEng(); private static final AppEng INSTANCE = new AppEng();
@@ -197,9 +197,12 @@ public class PacketJEIRecipe extends AppEngPacket {
if (request.getItem().isDamageable() || Platform.isGTDamageableItem(request.getItem())) { if (request.getItem().isDamageable() || Platform.isGTDamageableItem(request.getItem())) {
Collection<IAEItemStack> outList = inv.getInventory(AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class)).getStorageList().findFuzzy(request, FuzzyMode.IGNORE_ALL); Collection<IAEItemStack> outList = inv.getInventory(AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class)).getStorageList().findFuzzy(request, FuzzyMode.IGNORE_ALL);
for (IAEItemStack is : outList) { for (IAEItemStack is : outList) {
if (is.getDefinition().getMetadata() == request.getDefinition().getMetadata()) { if (Platform.isGTDamageableItem(request.getItem())) {
out = Platform.poweredExtraction(energy, storage, is.copy().setStackSize(1), cct.getActionSource()); if (!(is.getDefinition().getMetadata() == request.getDefinition().getMetadata())) {
continue;
}
} }
out = Platform.poweredExtraction(energy, storage, is.copy().setStackSize(1), cct.getActionSource());
if (out != null) { if (out != null) {
break; break;
} }
@@ -50,6 +50,7 @@ public class GuiFluidInterface extends GuiUpgradeable implements IConfigManagerH
public GuiFluidInterface(final InventoryPlayer ip, final IFluidInterfaceHost te) { public GuiFluidInterface(final InventoryPlayer ip, final IFluidInterfaceHost te) {
super(new ContainerFluidInterface(ip, te)); super(new ContainerFluidInterface(ip, te));
this.ySize = 231; this.ySize = 231;
this.xSize = 245;
this.host = te; this.host = te;
(this.container = (ContainerFluidInterface) this.inventorySlots).setGui(this); (this.container = (ContainerFluidInterface) this.inventorySlots).setGui(this);
@@ -85,7 +86,7 @@ public class GuiFluidInterface extends GuiUpgradeable implements IConfigManagerH
@Override @Override
public void drawBG(int offsetX, int offsetY, int mouseX, int mouseY) { public void drawBG(int offsetX, int offsetY, int mouseX, int mouseY) {
this.bindTexture("guis/interfacefluid.png"); this.bindTexture("guis/interfacefluidextendedlife.png");
this.drawTexturedModalRect(offsetX, offsetY, 0, 0, this.xSize, this.ySize); this.drawTexturedModalRect(offsetX, offsetY, 0, 0, this.xSize, this.ySize);
} }
@@ -266,7 +266,7 @@ public class DualityFluidInterface implements IGridTickable, IStorageMonitorable
final Block directedBlock = directedBlockState.getBlock(); final Block directedBlock = directedBlockState.getBlock();
ItemStack what = new ItemStack(directedBlock, 1, directedBlock.getMetaFromState(directedBlockState)); ItemStack what = new ItemStack(directedBlock, 1, directedBlock.getMetaFromState(directedBlockState));
if (Loader.isModLoaded("gregtech") && directedBlock instanceof BlockMachine) { if (Platform.GTLoaded && directedBlock instanceof BlockMachine) {
MetaTileEntity metaTileEntity = Platform.getMetaTileEntity(directedTile.getWorld(), directedTile.getPos()); MetaTileEntity metaTileEntity = Platform.getMetaTileEntity(directedTile.getWorld(), directedTile.getPos());
if (metaTileEntity != null) { if (metaTileEntity != null) {
return metaTileEntity.getMetaFullName(); return metaTileEntity.getMetaFullName();
@@ -104,7 +104,7 @@ public class AEFluidInventory implements IAEFluidTank {
if (doFill) { if (doFill) {
if (fluid == null) { if (fluid == null) {
this.setFluidInSlot(slot, AEFluidStack.fromFluidStack(resource)); this.setFluidInSlot(slot, AEFluidStack.fromFluidStack(resource).setStackSize(amountToStore));
} else { } else {
fluid.setStackSize(fluid.getStackSize() + amountToStore); fluid.setStackSize(fluid.getStackSize() + amountToStore);
this.onContentChanged(slot); this.onContentChanged(slot);
@@ -161,13 +161,6 @@ public final class FluidList implements IItemList<IAEFluidStack> {
} }
} }
@Override
public FluidList clone() {
FluidList list = new FluidList();
list.records.putAll(records);
return list;
}
private IAEFluidStack getFluidRecord(final IAEFluidStack fluid) { private IAEFluidStack getFluidRecord(final IAEFluidStack fluid) {
return this.records.get(fluid); return this.records.get(fluid);
} }
@@ -65,6 +65,7 @@ import appeng.parts.automation.UpgradeInventory;
import appeng.parts.misc.PartInterface; import appeng.parts.misc.PartInterface;
import appeng.tile.inventory.AppEngInternalAEInventory; import appeng.tile.inventory.AppEngInternalAEInventory;
import appeng.tile.inventory.AppEngInternalInventory; import appeng.tile.inventory.AppEngInternalInventory;
import appeng.tile.inventory.AppEngInternalOversizedInventory;
import appeng.tile.networking.TileCableBus; import appeng.tile.networking.TileCableBus;
import appeng.util.ConfigManager; import appeng.util.ConfigManager;
import appeng.util.IConfigManagerHost; import appeng.util.IConfigManagerHost;
@@ -115,7 +116,7 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
private final IActionSource interfaceRequestSource; private final IActionSource interfaceRequestSource;
private final ConfigManager cm = new ConfigManager(this); private final ConfigManager cm = new ConfigManager(this);
private final AppEngInternalAEInventory config = new AppEngInternalAEInventory(this, NUMBER_OF_CONFIG_SLOTS, 512); private final AppEngInternalAEInventory config = new AppEngInternalAEInventory(this, NUMBER_OF_CONFIG_SLOTS, 512);
private final AppEngInternalInventory storage = new AppEngInternalInventory(this, NUMBER_OF_STORAGE_SLOTS, 512); private final AppEngInternalInventory storage = new AppEngInternalOversizedInventory(this, NUMBER_OF_STORAGE_SLOTS, 512);
private final AppEngInternalInventory patterns = new AppEngInternalInventory(this, NUMBER_OF_PATTERN_SLOTS); private final AppEngInternalInventory patterns = new AppEngInternalInventory(this, NUMBER_OF_PATTERN_SLOTS);
private final MEMonitorPassThrough<IAEItemStack> items = new MEMonitorPassThrough<>(new NullInventory<IAEItemStack>(), AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class)); private final MEMonitorPassThrough<IAEItemStack> items = new MEMonitorPassThrough<>(new NullInventory<IAEItemStack>(), AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class));
private final MEMonitorPassThrough<IAEFluidStack> fluids = new MEMonitorPassThrough<>(new NullInventory<IAEFluidStack>(), AEApi.instance().storage().getStorageChannel(IFluidStorageChannel.class)); private final MEMonitorPassThrough<IAEFluidStack> fluids = new MEMonitorPassThrough<>(new NullInventory<IAEFluidStack>(), AEApi.instance().storage().getStorageChannel(IFluidStorageChannel.class));
@@ -209,6 +210,9 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
for (final ItemStack is : this.waitingToSend) { for (final ItemStack is : this.waitingToSend) {
final NBTTagCompound item = new NBTTagCompound(); final NBTTagCompound item = new NBTTagCompound();
is.writeToNBT(item); is.writeToNBT(item);
if (is.getCount() > Byte.MAX_VALUE) {
item.setInteger("stackSize", is.getCount());
}
waitingToSend.appendTag(item); waitingToSend.appendTag(item);
} }
} }
@@ -223,6 +227,9 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
for (final ItemStack is : this.waitingToSendFacing.get(s)) { for (final ItemStack is : this.waitingToSendFacing.get(s)) {
final NBTTagCompound item = new NBTTagCompound(); final NBTTagCompound item = new NBTTagCompound();
is.writeToNBT(item); is.writeToNBT(item);
if (is.getCount() > Byte.MAX_VALUE) {
item.setInteger("stackSize", is.getCount());
}
waitingListSided.appendTag(item); waitingListSided.appendTag(item);
} }
sidedWaitList.setTag(s.name(), waitingListSided); sidedWaitList.setTag(s.name(), waitingListSided);
@@ -240,6 +247,9 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
final NBTTagCompound c = waitingList.getCompoundTagAt(x); final NBTTagCompound c = waitingList.getCompoundTagAt(x);
if (c != null) { if (c != null) {
final ItemStack is = new ItemStack(c); final ItemStack is = new ItemStack(c);
if (c.hasKey("stackSize")) {
is.setCount(c.getInteger("stackSize"));
}
this.addToSendList(is); this.addToSendList(is);
} }
} }
@@ -255,6 +265,9 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
final NBTTagCompound c = w.getCompoundTagAt(x); final NBTTagCompound c = w.getCompoundTagAt(x);
if (c != null) { if (c != null) {
final ItemStack is = new ItemStack(c); final ItemStack is = new ItemStack(c);
if (c.hasKey("stackSize")) {
is.setCount(c.getInteger("stackSize"));
}
this.addToSendListFacing(is, EnumFacing.getFront(s.getIndex())); this.addToSendListFacing(is, EnumFacing.getFront(s.getIndex()));
} }
} }
@@ -626,7 +639,8 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
if (result.isEmpty()) { if (result.isEmpty()) {
whatToSend = ItemStack.EMPTY; whatToSend = ItemStack.EMPTY;
} else { } else {
whatToSend.setCount(whatToSend.getCount() - (whatToSend.getCount() - result.getCount())); whatToSend.setCount(result.getCount());
whatToSend.setTagCompound(result.getTagCompound());
} }
if (whatToSend.isEmpty()) { if (whatToSend.isEmpty()) {
@@ -680,6 +694,7 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
final IAEItemStack result = inv.injectItems(AEItemStack.fromItemStack(whatToSend), Actionable.MODULATE, this.mySource); final IAEItemStack result = inv.injectItems(AEItemStack.fromItemStack(whatToSend), Actionable.MODULATE, this.mySource);
if (result != null) { if (result != null) {
whatToSend.setCount((int) result.getStackSize()); whatToSend.setCount((int) result.getStackSize());
whatToSend.setTagCompound(result.getDefinition().getTagCompound());
} else { } else {
i.remove(); i.remove();
} }
@@ -708,6 +723,7 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
final ItemStack result = ad.addItems(whatToSend); final ItemStack result = ad.addItems(whatToSend);
if (!result.isEmpty()) { if (!result.isEmpty()) {
whatToSend.setCount(result.getCount()); whatToSend.setCount(result.getCount());
whatToSend.setTagCompound(result.getTagCompound());
} else { } else {
i.remove(); i.remove();
} }
@@ -1105,7 +1121,7 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
final InventoryAdaptor ad = InventoryAdaptor.getAdaptor(te, s.getOpposite()); final InventoryAdaptor ad = InventoryAdaptor.getAdaptor(te, s.getOpposite());
if (ad != null) { if (ad != null) {
if (Loader.isModLoaded("actuallyadditions") && Loader.isModLoaded("gregtech") && te instanceof IPhantomTile) { if (Loader.isModLoaded("actuallyadditions") && Platform.GTLoaded && te instanceof IPhantomTile) {
IPhantomTile phantomTE = ((IPhantomTile) te); IPhantomTile phantomTE = ((IPhantomTile) te);
if (phantomTE.hasBoundPosition()) { if (phantomTE.hasBoundPosition()) {
TileEntity phantom = w.getTileEntity(phantomTE.getBoundPosition()); TileEntity phantom = w.getTileEntity(phantomTE.getBoundPosition());
@@ -1287,7 +1303,7 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
final Block directedBlock = directedBlockState.getBlock(); final Block directedBlock = directedBlockState.getBlock();
ItemStack what = new ItemStack(directedBlock, 1, directedBlock.getMetaFromState(directedBlockState)); ItemStack what = new ItemStack(directedBlock, 1, directedBlock.getMetaFromState(directedBlockState));
if (Loader.isModLoaded("gregtech") && directedBlock instanceof BlockMachine) { if (Platform.GTLoaded && directedBlock instanceof BlockMachine) {
MetaTileEntity metaTileEntity = Platform.getMetaTileEntity(directedTile.getWorld(), directedTile.getPos()); MetaTileEntity metaTileEntity = Platform.getMetaTileEntity(directedTile.getWorld(), directedTile.getPos());
if (metaTileEntity != null) { if (metaTileEntity != null) {
return metaTileEntity.getMetaFullName(); return metaTileEntity.getMetaFullName();
@@ -42,7 +42,7 @@ public class NonBlockingItems {
continue; continue;
} }
if (ModItemMeta[0].equals("gregtech") && Platform.isModLoaded("gregtech")) { if (ModItemMeta[0].equals("gregtech") && Platform.GTLoaded) {
boolean found = false; boolean found = false;
for (MetaItem<?> metaItem : MetaItem.getMetaItems()) { for (MetaItem<?> metaItem : MetaItem.getMetaItems()) {
MetaItem<?>.MetaValueItem metaItem2 = metaItem.getItem(ModItemMeta[1]); MetaItem<?>.MetaValueItem metaItem2 = metaItem.getItem(ModItemMeta[1]);
@@ -0,0 +1,49 @@
package appeng.integration.modules.chisel;
import appeng.block.networking.BlockCableBus;
import net.minecraft.block.state.IBlockState;
import net.minecraft.client.Minecraft;
import net.minecraft.client.entity.EntityPlayerSP;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.MovementInput;
import net.minecraft.util.MovementInputFromOptions;
import net.minecraft.util.math.BlockPos;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Optional;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.gameevent.TickEvent;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import team.chisel.common.config.Configurations;
import static team.chisel.client.handler.BlockSpeedHandler.speedupBlocks;
@Mod.EventBusSubscriber(Side.CLIENT)
public class ChiselBlockSpeedHandler {
@SideOnly(Side.CLIENT)
private static MovementInput manualInputCheck;
@Optional.Method(modid = "chisel")
@SubscribeEvent
@SideOnly(Side.CLIENT)
public static void speedupPlayer(TickEvent.PlayerTickEvent event) {
if (event.phase == TickEvent.Phase.START && event.side.isClient() && event.player.onGround && event.player instanceof EntityPlayerSP) {
if (manualInputCheck == null) {
manualInputCheck = new MovementInputFromOptions(Minecraft.getMinecraft().gameSettings);
}
EntityPlayerSP player = (EntityPlayerSP) event.player;
BlockPos blockPosBelow = new BlockPos(player.posX, player.posY - (1 / 16D), player.posZ);
IBlockState below = player.getEntityWorld().getBlockState(blockPosBelow);
if (below.getBlock() instanceof BlockCableBus) {
IBlockState f = ((BlockCableBus) below.getBlock()).getFacadeState(Minecraft.getMinecraft().world, blockPosBelow, EnumFacing.UP);
if (speedupBlocks.contains(f.getBlock())) {
manualInputCheck.updatePlayerMoveState();
if ((manualInputCheck.moveForward != 0 || manualInputCheck.moveStrafe != 0) && !player.isInWater()) {
player.motionX *= Configurations.concreteVelocityMult;
player.motionZ *= Configurations.concreteVelocityMult;
}
}
}
}
}
}
@@ -1,21 +1,27 @@
package appeng.integration.modules.jei; package appeng.integration.modules.jei;
import appeng.api.AEApi; import appeng.api.AEApi;
import appeng.api.config.FuzzyMode;
import appeng.api.storage.channels.IItemStorageChannel;
import appeng.api.storage.data.IAEItemStack; import appeng.api.storage.data.IAEItemStack;
import appeng.api.storage.data.IItemList; import appeng.api.storage.data.IItemList;
import appeng.container.AEBaseContainer; import appeng.container.AEBaseContainer;
import appeng.container.implementations.ContainerCraftingTerm;
import appeng.core.sync.network.NetworkHandler; import appeng.core.sync.network.NetworkHandler;
import appeng.core.sync.packets.PacketInventoryAction; import appeng.core.sync.packets.PacketInventoryAction;
import appeng.helpers.InventoryAction; import appeng.helpers.InventoryAction;
import appeng.util.Platform;
import appeng.util.item.AEItemStack; import appeng.util.item.AEItemStack;
import com.google.common.base.Stopwatch; import com.google.common.base.Stopwatch;
import mezz.jei.api.gui.ITooltipCallback; import mezz.jei.api.gui.ITooltipCallback;
import net.minecraft.inventory.Container; import net.minecraft.inventory.Container;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.util.text.TextFormatting;
import net.minecraft.util.text.translation.I18n; import net.minecraft.util.text.translation.I18n;
import net.minecraftforge.items.IItemHandler;
import net.minecraftforge.items.wrapper.PlayerMainInvWrapper;
import org.lwjgl.input.Mouse; import org.lwjgl.input.Mouse;
import java.util.Collection;
import java.util.List; import java.util.List;
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
@@ -34,26 +40,81 @@ public class CraftableCallBack implements ITooltipCallback<ItemStack> {
public void onTooltip(int slotIndex, boolean input, ItemStack ingredient, List<String> tooltip) { public void onTooltip(int slotIndex, boolean input, ItemStack ingredient, List<String> tooltip) {
if (!input) return; if (!input) return;
if (list != null) { if (list != null) {
IAEItemStack found = list.findPrecise(AEItemStack.fromItemStack(ingredient));
if (found != null) { IItemList<IAEItemStack> available = mergeInventories(list, (ContainerCraftingTerm) container);
if (found.getStackSize() == 0) {
IAEItemStack search = AEItemStack.fromItemStack(ingredient);
if (ingredient.getItem().isDamageable() || Platform.isGTDamageableItem(ingredient.getItem())) {
Collection<IAEItemStack> fuzzy = available.findFuzzy(search, FuzzyMode.IGNORE_ALL);
if (fuzzy.size() > 0) {
for (IAEItemStack itemStack : fuzzy) {
if (itemStack.getStackSize() > 0) {
if (Platform.isGTDamageableItem(ingredient.getItem())) {
if (!(ingredient.getMetadata() == itemStack.getDefinition().getMetadata())) {
continue;
}
}
break;
} else {
String line = "§c[" + I18n.translateToLocalFormatted("gui.appliedenergistics2.Missing") + "]";
tooltip.add(line);
if (itemStack.isCraftable()) {
line = "§1[" + I18n.translateToLocalFormatted("gui.tooltips.appliedenergistics2.Craftable") + "]";
tooltip.add(line);
if (Mouse.isButtonDown(2) && this.lastClicked.elapsed(TimeUnit.MILLISECONDS) > 200) {
this.lastClicked.reset().start();
((AEBaseContainer) container).setTargetStack(itemStack);
final PacketInventoryAction p = new PacketInventoryAction(InventoryAction.AUTO_CRAFT, container.getInventory().size(), 0);
NetworkHandler.instance().sendToServer(p);
}
}
}
}
} else {
String line = "§c[" + I18n.translateToLocalFormatted("gui.appliedenergistics2.Missing") + "]"; String line = "§c[" + I18n.translateToLocalFormatted("gui.appliedenergistics2.Missing") + "]";
tooltip.add(line); tooltip.add(line);
} }
if (found.isCraftable()) {
String line = "§1[" + I18n.translateToLocalFormatted("gui.tooltips.appliedenergistics2.Craftable") + "]";
tooltip.add(line);
if (Mouse.isButtonDown(2) && this.lastClicked.elapsed(TimeUnit.MILLISECONDS) > 200) {
this.lastClicked.reset().start();
((AEBaseContainer) container).setTargetStack(found);
final PacketInventoryAction p = new PacketInventoryAction(InventoryAction.AUTO_CRAFT, container.getInventory().size(), 0);
NetworkHandler.instance().sendToServer(p);
}
}
} else { } else {
String line = "§c[" + I18n.translateToLocalFormatted("gui.appliedenergistics2.Missing") + "]"; IAEItemStack found = available.findPrecise(search);
tooltip.add(line); if (found != null) {
if (found.getStackSize() == 0) {
String line = "§c[" + I18n.translateToLocalFormatted("gui.appliedenergistics2.Missing") + "]";
tooltip.add(line);
}
if (found.isCraftable()) {
String line = "§1[" + I18n.translateToLocalFormatted("gui.tooltips.appliedenergistics2.Craftable") + "]";
tooltip.add(line);
if (Mouse.isButtonDown(2) && this.lastClicked.elapsed(TimeUnit.MILLISECONDS) > 200) {
this.lastClicked.reset().start();
((AEBaseContainer) container).setTargetStack(found);
final PacketInventoryAction p = new PacketInventoryAction(InventoryAction.AUTO_CRAFT, container.getInventory().size(), 0);
NetworkHandler.instance().sendToServer(p);
}
}
} else {
String line = "§c[" + I18n.translateToLocalFormatted("gui.appliedenergistics2.Missing") + "]";
tooltip.add(line);
}
} }
} }
} }
IItemList<IAEItemStack> mergeInventories(IItemList<IAEItemStack> repo, ContainerCraftingTerm containerCraftingTerm) {
IItemList<IAEItemStack> itemList = AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class).createList();
for (IAEItemStack i : repo) {
itemList.addStorage(i);
}
PlayerMainInvWrapper invWrapper = new PlayerMainInvWrapper(containerCraftingTerm.getPlayerInv());
for (int i = 0; i < invWrapper.getSlots(); i++) {
itemList.addStorage(AEItemStack.fromItemStack(invWrapper.getStackInSlot(i)));
}
IItemHandler itemHandler = containerCraftingTerm.getInventoryByName("crafting");
for (int i = 0; i < itemHandler.getSlots(); i++) {
itemList.addStorage(AEItemStack.fromItemStack(itemHandler.getStackInSlot(i)));
}
return itemList;
}
} }
@@ -16,19 +16,27 @@ import mezz.jei.gui.recipes.RecipeLayout;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import net.minecraft.inventory.Container; import net.minecraft.inventory.Container;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraftforge.items.IItemHandler;
import net.minecraftforge.items.wrapper.PlayerMainInvWrapper;
import javax.annotation.Nonnull; import javax.annotation.Nonnull;
import java.awt.*; import java.awt.*;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.List; import java.util.List;
import java.util.stream.Collectors;
import static mezz.jei.api.recipe.transfer.IRecipeTransferError.Type.USER_FACING; import static mezz.jei.api.recipe.transfer.IRecipeTransferError.Type.USER_FACING;
public class JEIMissingItem implements IRecipeTransferError { public class JEIMissingItem implements IRecipeTransferError {
private boolean errored; private boolean errored;
public long lastUpdate;
private final List<Integer> craftableSlots = new ArrayList<>();
private final List<Integer> foundSlots = new ArrayList<>();
IItemList<IAEItemStack> available = AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class).createList();
IItemList<IAEItemStack> used = AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class).createList();
JEIMissingItem(Container container, @Nonnull IRecipeLayout recipeLayout) { JEIMissingItem(Container container, @Nonnull IRecipeLayout recipeLayout) {
if (container instanceof ContainerCraftingTerm) { if (container instanceof ContainerCraftingTerm) {
@@ -36,9 +44,12 @@ public class JEIMissingItem implements IRecipeTransferError {
GuiCraftingTerm g = (GuiCraftingTerm) craftingTerm.getGui(); GuiCraftingTerm g = (GuiCraftingTerm) craftingTerm.getGui();
IItemList<IAEItemStack> ir = g.getRepo().getList(); IItemList<IAEItemStack> ir = g.getRepo().getList();
IItemList<IAEItemStack> available = mergeInventories(ir, (ContainerCraftingTerm) container);
boolean found; boolean found;
this.errored = false; this.errored = false;
recipeLayout.getItemStacks().addTooltipCallback(new CraftableCallBack(container, ir)); recipeLayout.getItemStacks().addTooltipCallback(new CraftableCallBack(container, available));
IItemList<IAEItemStack> used = AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class).createList(); IItemList<IAEItemStack> used = AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class).createList();
for (IGuiIngredient<?> i : recipeLayout.getItemStacks().getGuiIngredients().values()) { for (IGuiIngredient<?> i : recipeLayout.getItemStacks().getGuiIngredients().values()) {
@@ -49,30 +60,34 @@ public class JEIMissingItem implements IRecipeTransferError {
if (allIngredient instanceof ItemStack) { if (allIngredient instanceof ItemStack) {
ItemStack stack = (ItemStack) allIngredient; ItemStack stack = (ItemStack) allIngredient;
if (!stack.isEmpty()) { if (!stack.isEmpty()) {
IAEItemStack search = AEItemStack.fromItemStack(stack);
if (stack.getItem().isDamageable() || Platform.isGTDamageableItem(stack.getItem())) { if (stack.getItem().isDamageable() || Platform.isGTDamageableItem(stack.getItem())) {
Collection<IAEItemStack> fuzzy = ir.findFuzzy(AEItemStack.fromItemStack(stack), FuzzyMode.IGNORE_ALL); Collection<IAEItemStack> fuzzy = available.findFuzzy(search, FuzzyMode.IGNORE_ALL);
if (fuzzy.size() > 0) { if (fuzzy.size() > 0) {
for (IAEItemStack itemStack : fuzzy) { for (IAEItemStack itemStack : fuzzy) {
if (itemStack.getStackSize() > 0) { if (itemStack.getStackSize() > 0) {
if (itemStack.fuzzyComparison(AEItemStack.fromItemStack(stack), FuzzyMode.IGNORE_ALL)) { if (Platform.isGTDamageableItem(stack.getItem())) {
found = true; if (!(stack.getMetadata() == itemStack.getDefinition().getMetadata())) {
break; continue;
}
} }
found = true;
used.add(itemStack.copy().setStackSize(1));
} }
} }
} }
} else { } else {
IAEItemStack ext = ir.findPrecise(AEItemStack.fromItemStack(stack)); IAEItemStack ext = available.findPrecise(search);
if (ext != null) { if (ext != null) {
IAEItemStack usedStack = used.findPrecise(ext); IAEItemStack usedStack = used.findPrecise(ext);
if (ext.getStackSize() > 0 && (usedStack == null || ext.getStackSize() > usedStack.getStackSize())) { if (ext.getStackSize() > 0 && (usedStack == null || ext.getStackSize() > usedStack.getStackSize())) {
used.add(ext.copy().setStackSize(1)); used.add(ext.copy().setStackSize(1));
found = true; found = true;
} else {
found = false;
} }
} }
} }
} else {
found = true;
} }
} }
} }
@@ -103,29 +118,53 @@ public class JEIMissingItem implements IRecipeTransferError {
boolean craftable; boolean craftable;
int currentSlot = 0; int currentSlot = 0;
this.errored = false; this.errored = false;
IItemList<IAEItemStack> used = AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class).createList();
if (System.currentTimeMillis() - lastUpdate > 1000) {
lastUpdate = System.currentTimeMillis();
available = mergeInventories(ir, (ContainerCraftingTerm) minecraft.player.openContainer);
this.foundSlots.clear();
this.craftableSlots.clear();
} else {
for (IGuiIngredient<?> i : recipeLayout.getItemStacks().getGuiIngredients().values()) {
if (i.isInput()) {
if (!foundSlots.contains(currentSlot)) {
if (craftableSlots.contains(currentSlot)) {
i.drawHighlight(minecraft, new Color(0.0f, 0.0f, 1.0f, 0.4f), recipeX, recipeY);
} else {
i.drawHighlight(minecraft, new Color(1.0f, 0.0f, 0.0f, 0.4f), recipeX, recipeY);
}
}
}
currentSlot++;
}
return;
}
this.used.resetStatus();
for (IGuiIngredient<?> i : recipeLayout.getItemStacks().getGuiIngredients().values()) { for (IGuiIngredient<?> i : recipeLayout.getItemStacks().getGuiIngredients().values()) {
found = false; found = false;
craftable = false; craftable = false;
List<ItemStack> valid = new ArrayList<>(); ArrayList<ItemStack> valid = new ArrayList<>();
if (i.isInput() && i.getAllIngredients().size() > 0) { if (i.isInput()) {
List<?> allIngredients = i.getAllIngredients(); List<?> allIngredients = i.getAllIngredients();
for (Object allIngredient : allIngredients) { for (Object allIngredient : allIngredients) {
if (allIngredient instanceof ItemStack) { if (allIngredient instanceof ItemStack) {
ItemStack stack = (ItemStack) allIngredient; ItemStack stack = (ItemStack) allIngredient;
if (!stack.isEmpty()) { if (!stack.isEmpty()) {
IAEItemStack search = AEItemStack.fromItemStack(stack);
if (stack.getItem().isDamageable() || Platform.isGTDamageableItem(stack.getItem())) { if (stack.getItem().isDamageable() || Platform.isGTDamageableItem(stack.getItem())) {
Collection<IAEItemStack> fuzzy = ir.findFuzzy(AEItemStack.fromItemStack(stack), FuzzyMode.IGNORE_ALL); Collection<IAEItemStack> fuzzy = available.findFuzzy(search, FuzzyMode.IGNORE_ALL);
if (fuzzy.size() > 0) { if (fuzzy.size() > 0) {
for (IAEItemStack itemStack : fuzzy) { for (IAEItemStack itemStack : fuzzy) {
if (itemStack.getStackSize() > 0) { if (itemStack.getStackSize() > 0) {
if (itemStack.fuzzyComparison(AEItemStack.fromItemStack(stack), FuzzyMode.IGNORE_ALL)) { if (Platform.isGTDamageableItem(stack.getItem())) {
found = true; if (!(stack.getMetadata() == itemStack.getDefinition().getMetadata())) {
used.add(itemStack.copy().setStackSize(1)); continue;
valid.addAll(fuzzy.stream().map(IAEItemStack::createItemStack).collect(Collectors.toList())); }
break;
} }
found = true;
used.add(itemStack.copy().setStackSize(1));
valid.add(itemStack.copy().setStackSize(1).createItemStack());
} else { } else {
if (itemStack.isCraftable()) { if (itemStack.isCraftable()) {
craftable = true; craftable = true;
@@ -134,7 +173,7 @@ public class JEIMissingItem implements IRecipeTransferError {
} }
} }
} else { } else {
IAEItemStack ext = ir.findPrecise(AEItemStack.fromItemStack(stack)); IAEItemStack ext = available.findPrecise(search);
if (ext != null) { if (ext != null) {
IAEItemStack usedStack = used.findPrecise(ext); IAEItemStack usedStack = used.findPrecise(ext);
if (ext.getStackSize() > 0 && (usedStack == null || usedStack.getStackSize() < ext.getStackSize())) { if (ext.getStackSize() > 0 && (usedStack == null || usedStack.getStackSize() < ext.getStackSize())) {
@@ -144,27 +183,32 @@ public class JEIMissingItem implements IRecipeTransferError {
} }
valid.add(ext.copy().setStackSize(1).createItemStack()); valid.add(ext.copy().setStackSize(1).createItemStack());
found = true; found = true;
break;
} else if (ext.isCraftable()) { } else if (ext.isCraftable()) {
valid.add(ext.copy().setStackSize(1).createItemStack()); valid.add(ext.copy().setStackSize(1).createItemStack());
craftable = true; craftable = true;
} }
} }
} }
} else {
found = true;
} }
} }
} }
if (i.getAllIngredients().size() == 0) {
found = true;
}
if (!found) { if (!found) {
if (craftable) { if (craftable) {
i.drawHighlight(minecraft, new Color(0.0f, 0.0f, 1.0f, 0.4f), recipeX, recipeY); i.drawHighlight(minecraft, new Color(0.0f, 0.0f, 1.0f, 0.4f), recipeX, recipeY);
this.craftableSlots.add(currentSlot);
recipeLayout.getItemStacks().set(currentSlot, valid); recipeLayout.getItemStacks().set(currentSlot, valid);
} else { } else {
i.drawHighlight(minecraft, new Color(1.0f, 0.0f, 0.0f, 0.4f), recipeX, recipeY); i.drawHighlight(minecraft, new Color(1.0f, 0.0f, 0.0f, 0.4f), recipeX, recipeY);
} }
this.errored = true; this.errored = true;
} else { } else {
this.foundSlots.add(currentSlot);
recipeLayout.getItemStacks().set(currentSlot, valid); recipeLayout.getItemStacks().set(currentSlot, valid);
this.errored = false;
} }
} }
currentSlot++; currentSlot++;
@@ -175,7 +219,25 @@ public class JEIMissingItem implements IRecipeTransferError {
} }
} }
IItemList<IAEItemStack> mergeInventories(IItemList<IAEItemStack> repo, ContainerCraftingTerm containerCraftingTerm) {
IItemList<IAEItemStack> itemList = AEApi.instance().storage().getStorageChannel(IItemStorageChannel.class).createList();
for (IAEItemStack i : repo) {
itemList.addStorage(i);
}
PlayerMainInvWrapper invWrapper = new PlayerMainInvWrapper(containerCraftingTerm.getPlayerInv());
for (int i = 0; i < invWrapper.getSlots(); i++) {
itemList.addStorage(AEItemStack.fromItemStack(invWrapper.getStackInSlot(i)));
}
IItemHandler itemHandler = containerCraftingTerm.getInventoryByName("crafting");
for (int i = 0; i < itemHandler.getSlots(); i++) {
itemList.addStorage(AEItemStack.fromItemStack(itemHandler.getStackInSlot(i)));
}
return itemList;
}
public boolean errored() { public boolean errored() {
return this.errored; return errored;
} }
} }
@@ -37,12 +37,13 @@ import java.util.Iterator;
public class AppEngInternalInventory extends ItemStackHandler implements Iterable<ItemStack> { public class AppEngInternalInventory extends ItemStackHandler implements Iterable<ItemStack> {
private boolean enableClientEvents = false; protected boolean enableClientEvents = false;
private IAEAppEngInventory te; protected IAEAppEngInventory te;
private final int[] maxStack; protected final int[] maxStack;
private ItemStack previousStack = ItemStack.EMPTY; protected ItemStack previousStack = ItemStack.EMPTY;
private IAEItemFilter filter; protected IAEItemFilter filter;
private boolean dirtyFlag = false; protected boolean dirtyFlag = false;
protected boolean limitExtraction;
public AppEngInternalInventory(final IAEAppEngInventory inventory, final int size, final int maxStack, IAEItemFilter filter) { public AppEngInternalInventory(final IAEAppEngInventory inventory, final int size, final int maxStack, IAEItemFilter filter) {
super(size); super(size);
@@ -87,38 +88,7 @@ public class AppEngInternalInventory extends ItemStackHandler implements Iterabl
if (!simulate) { if (!simulate) {
this.previousStack = this.getStackInSlot(slot).copy(); this.previousStack = this.getStackInSlot(slot).copy();
} }
return super.insertItem(slot, stack, simulate);
if (stack.isEmpty())
return ItemStack.EMPTY;
validateSlotIndex(slot);
ItemStack existing = this.stacks.get(slot);
int limit = maxStack[slot];
if (!existing.isEmpty()) {
if (!ItemHandlerHelper.canItemStacksStack(stack, existing))
return stack;
limit -= existing.getCount();
}
if (limit <= 0)
return stack;
boolean reachedLimit = stack.getCount() > limit;
if (!simulate) {
if (existing.isEmpty()) {
this.stacks.set(slot, reachedLimit ? ItemHandlerHelper.copyStackWithSize(stack, limit) : stack);
} else {
existing.grow(reachedLimit ? limit : stack.getCount());
}
onContentsChanged(slot);
}
return reachedLimit ? ItemHandlerHelper.copyStackWithSize(stack, stack.getCount() - limit) : ItemStack.EMPTY;
} }
@Override @Override
@@ -131,30 +101,7 @@ public class AppEngInternalInventory extends ItemStackHandler implements Iterabl
if (!simulate) { if (!simulate) {
this.previousStack = this.getStackInSlot(slot).copy(); this.previousStack = this.getStackInSlot(slot).copy();
} }
if (amount == 0) return super.extractItem(slot, amount, simulate);
return ItemStack.EMPTY;
validateSlotIndex(slot);
ItemStack existing = this.stacks.get(slot);
if (existing.isEmpty())
return ItemStack.EMPTY;
if (existing.getCount() <= amount) {
if (!simulate) {
this.stacks.set(slot, ItemStack.EMPTY);
onContentsChanged(slot);
}
return existing;
} else {
if (!simulate) {
this.stacks.set(slot, ItemHandlerHelper.copyStackWithSize(existing, existing.getCount() - amount));
onContentsChanged(slot);
}
return ItemHandlerHelper.copyStackWithSize(existing, amount);
}
} }
@Override @Override
@@ -217,7 +164,7 @@ public class AppEngInternalInventory extends ItemStackHandler implements Iterabl
if (!is.isEmpty()) { if (!is.isEmpty()) {
NBTTagCompound itemTag = new NBTTagCompound(); NBTTagCompound itemTag = new NBTTagCompound();
itemTag.setInteger("Slot", i); itemTag.setInteger("Slot", i);
if (is.getCount() > is.getMaxStackSize()) { if (is.getCount() > Byte.MAX_VALUE) {
itemTag.setInteger("stackSize", stacks.get(i).getCount()); itemTag.setInteger("stackSize", stacks.get(i).getCount());
} }
stacks.get(i).writeToNBT(itemTag); stacks.get(i).writeToNBT(itemTag);
@@ -279,4 +226,8 @@ public class AppEngInternalInventory extends ItemStackHandler implements Iterabl
public void setTileEntity(final IAEAppEngInventory te) { public void setTileEntity(final IAEAppEngInventory te) {
this.te = te; this.te = te;
} }
public void limitExtraction(boolean limitExtraction) {
this.limitExtraction = limitExtraction;
}
} }
@@ -0,0 +1,117 @@
package appeng.tile.inventory;
import appeng.util.inv.IAEAppEngInventory;
import appeng.util.inv.filter.IAEItemFilter;
import net.minecraft.item.ItemStack;
import net.minecraftforge.items.ItemHandlerHelper;
import javax.annotation.Nonnull;
import java.util.Spliterator;
import java.util.function.Consumer;
public class AppEngInternalOversizedInventory extends AppEngInternalInventory {
public AppEngInternalOversizedInventory(IAEAppEngInventory inventory, int size, int maxStack, IAEItemFilter filter) {
super(inventory, size, maxStack, filter);
}
public AppEngInternalOversizedInventory(IAEAppEngInventory inventory, int size, int maxStack) {
super(inventory, size, maxStack);
}
public AppEngInternalOversizedInventory(IAEAppEngInventory inventory, int size) {
super(inventory, size);
}
@Override
@Nonnull
public ItemStack insertItem(int slot, @Nonnull ItemStack stack, boolean simulate) {
if (this.filter != null && !this.filter.allowInsert(this, slot, stack)) {
return stack;
}
if (!simulate) {
this.previousStack = this.getStackInSlot(slot).copy();
}
if (stack.isEmpty())
return ItemStack.EMPTY;
validateSlotIndex(slot);
ItemStack existing = this.stacks.get(slot);
int limit = maxStack[slot];
if (!existing.isEmpty()) {
if (!ItemHandlerHelper.canItemStacksStack(stack, existing))
return stack;
limit -= existing.getCount();
}
if (limit <= 0)
return stack;
boolean reachedLimit = stack.getCount() > limit;
if (!simulate) {
if (existing.isEmpty()) {
this.stacks.set(slot, reachedLimit ? ItemHandlerHelper.copyStackWithSize(stack, limit) : stack);
} else {
existing.grow(reachedLimit ? limit : stack.getCount());
}
onContentsChanged(slot);
}
return reachedLimit ? ItemHandlerHelper.copyStackWithSize(stack, stack.getCount() - limit) : ItemStack.EMPTY;
}
@Override
@Nonnull
public ItemStack extractItem(int slot, int amount, boolean simulate) {
if (this.filter != null && !this.filter.allowExtract(this, slot, amount)) {
return ItemStack.EMPTY;
}
if (!simulate) {
this.previousStack = this.getStackInSlot(slot).copy();
}
if (limitExtraction)
return super.extractItem(slot, amount, simulate);
if (amount == 0)
return ItemStack.EMPTY;
validateSlotIndex(slot);
ItemStack existing = this.stacks.get(slot);
if (existing.isEmpty())
return ItemStack.EMPTY;
if (existing.getCount() <= amount) {
if (!simulate) {
this.stacks.set(slot, ItemStack.EMPTY);
onContentsChanged(slot);
}
return existing;
} else {
if (!simulate) {
this.stacks.set(slot, ItemHandlerHelper.copyStackWithSize(existing, existing.getCount() - amount));
onContentsChanged(slot);
}
return ItemHandlerHelper.copyStackWithSize(existing, amount);
}
}
@Override
public void forEach(Consumer<? super ItemStack> consumer) {
super.forEach(consumer);
}
@Override
public Spliterator<ItemStack> spliterator() {
return super.spliterator();
}
}
+2 -1
View File
@@ -146,6 +146,7 @@ public class Platform {
private static final ItemComparisonHelper ITEM_COMPARISON_HELPER = new ItemComparisonHelper(); private static final ItemComparisonHelper ITEM_COMPARISON_HELPER = new ItemComparisonHelper();
private static final P2PHelper P2P_HELPER = new P2PHelper(); private static final P2PHelper P2P_HELPER = new P2PHelper();
private static Method reflectGTgetMTE; private static Method reflectGTgetMTE;
public static final boolean GTLoaded = isModLoaded("gregtech");
public static ItemComparisonHelper itemComparisons() { public static ItemComparisonHelper itemComparisons() {
return ITEM_COMPARISON_HELPER; return ITEM_COMPARISON_HELPER;
@@ -1416,7 +1417,7 @@ public class Platform {
//consider methods below moving to a compability class //consider methods below moving to a compability class
public static boolean isGTDamageableItem(Item item) { public static boolean isGTDamageableItem(Item item) {
return (isModLoaded("gregtech") && item instanceof IToolItem); return ((GTLoaded) && item instanceof IToolItem);
} }
public static MetaTileEntity getMetaTileEntity(IBlockAccess world, BlockPos pos) { public static MetaTileEntity getMetaTileEntity(IBlockAccess world, BlockPos pos) {
@@ -94,9 +94,4 @@ public class ItemListIgnoreCrafting<T extends IAEStack<T>> implements IItemList<
public void resetStatus() { public void resetStatus() {
this.target.resetStatus(); this.target.resetStatus();
} }
@Override
public ItemListIgnoreCrafting<T> clone() {
return new ItemListIgnoreCrafting<>(target);
}
} }
@@ -140,14 +140,6 @@ public final class ItemList implements IItemList<IAEItemStack> {
} }
} }
@Override
public ItemList clone() {
ItemList list = new ItemList();
list.records.putAll(records);
list.version.set(version.get());
return list;
}
private ItemVariantList getOrCreateRecord(Item item) { private ItemVariantList getOrCreateRecord(Item item) {
return this.records.computeIfAbsent(item, this::makeRecordMap); return this.records.computeIfAbsent(item, this::makeRecordMap);
} }
@@ -263,10 +263,10 @@ gui.tooltips.appliedenergistics2.SubstitutionsOff=Substitutions Disabled
gui.tooltips.appliedenergistics2.Encode=Encode Pattern gui.tooltips.appliedenergistics2.Encode=Encode Pattern
gui.tooltips.appliedenergistics2.EncodeDescription=Write the entered pattern to the current encoded pattern, or to available blank pattern. Hold Shift to transfer directly to your inventory gui.tooltips.appliedenergistics2.EncodeDescription=Write the entered pattern to the current encoded pattern, or to available blank pattern. Hold Shift to transfer directly to your inventory
gui.tooltips.appliedenergistics2.FuzzyMode=Fuzzy Comparison gui.tooltips.appliedenergistics2.FuzzyMode=Fuzzy Comparison
gui.tooltips.appliedenergistics2.FZPercent_25=Split Damage at 25% gui.tooltips.appliedenergistics2.FZPercent_25=Split Damage at §a25%§r
gui.tooltips.appliedenergistics2.FZPercent_50=Split Damage at 50% gui.tooltips.appliedenergistics2.FZPercent_50=Split Damage at §e50%§r
gui.tooltips.appliedenergistics2.FZPercent_75=Split Damage at 75% gui.tooltips.appliedenergistics2.FZPercent_75=Split Damage at §675%§r
gui.tooltips.appliedenergistics2.FZPercent_99=Split Damage at 99% gui.tooltips.appliedenergistics2.FZPercent_99=Split Damage at §499%§r
gui.tooltips.appliedenergistics2.SortOrder=Sort Order gui.tooltips.appliedenergistics2.SortOrder=Sort Order
gui.tooltips.appliedenergistics2.SortBy=Sort By gui.tooltips.appliedenergistics2.SortBy=Sort By
gui.tooltips.appliedenergistics2.FZIgnoreAll=Match Any gui.tooltips.appliedenergistics2.FZIgnoreAll=Match Any
@@ -290,8 +290,8 @@ gui.tooltips.appliedenergistics2.TrashController=Deletion via Shift / Space Clic
gui.tooltips.appliedenergistics2.InterfaceBlockingMode=Blocking Mode gui.tooltips.appliedenergistics2.InterfaceBlockingMode=Blocking Mode
gui.tooltips.appliedenergistics2.InterfaceCraftingMode=Crafting Mode gui.tooltips.appliedenergistics2.InterfaceCraftingMode=Crafting Mode
gui.tooltips.appliedenergistics2.Trash=Destroy Items gui.tooltips.appliedenergistics2.Trash=Destroy Items
gui.tooltips.appliedenergistics2.MatterBalls=Condense Into Matter Balls\n%s per item gui.tooltips.appliedenergistics2.MatterBalls=Condense Into Matter Balls\n§a%s§r per item
gui.tooltips.appliedenergistics2.Singularity=Condense Into Singularities\n%s per item gui.tooltips.appliedenergistics2.Singularity=Condense Into Singularities\n§a%s§r per item
gui.tooltips.appliedenergistics2.Read=Extract Only gui.tooltips.appliedenergistics2.Read=Extract Only
gui.tooltips.appliedenergistics2.Write=Insert Only gui.tooltips.appliedenergistics2.Write=Insert Only
gui.tooltips.appliedenergistics2.ReadWrite=Bi-Directional gui.tooltips.appliedenergistics2.ReadWrite=Bi-Directional
@@ -410,16 +410,16 @@ waila.appliedenergistics2.Locked=Locked
waila.appliedenergistics2.Unlocked=Unlocked waila.appliedenergistics2.Unlocked=Unlocked
waila.appliedenergistics2.Showing=Showing waila.appliedenergistics2.Showing=Showing
waila.appliedenergistics2.Contains=Contains waila.appliedenergistics2.Contains=Contains
waila.appliedenergistics2.Channels=%1$d of %2$d Channels waila.appliedenergistics2.Channels=§2%1$d§r of §4%2$d§r Channels
waila.appliedenergistics2.P2PUnlinked=Unlinked waila.appliedenergistics2.P2PUnlinked=Unlinked
waila.appliedenergistics2.p2p_input_one_output=Linked (Input Side) - 1 Output waila.appliedenergistics2.p2p_input_one_output=Linked (Input Side) - 1 Output
waila.appliedenergistics2.p2p_input_many_outputs=Linked (Input Side) - %d Outputs waila.appliedenergistics2.p2p_input_many_outputs=Linked (Input Side) - §4%d§r Outputs
waila.appliedenergistics2.p2p_output_one_input=Linked (Output Side) - 1 Input waila.appliedenergistics2.p2p_output_one_input=Linked (Output Side) - 1 Input
waila.appliedenergistics2.p2p_output_many_inputs=Linked (Output Side) - %d Inputs waila.appliedenergistics2.p2p_output_many_inputs=Linked (Output Side) - §2%d§r Inputs
waila.appliedenergistics2.P2POutput=Linked (Output Side) waila.appliedenergistics2.P2POutput=Linked (Output Side)
// TheOneProbe // TheOneProbe
theoneprobe.appliedenergistics2.crafting=Crafting: %1$s theoneprobe.appliedenergistics2.crafting=Crafting: §2%1$s§r
theoneprobe.appliedenergistics2.device_online=Device Online theoneprobe.appliedenergistics2.device_online=Device Online
theoneprobe.appliedenergistics2.device_offline=Device Offline theoneprobe.appliedenergistics2.device_offline=Device Offline
theoneprobe.appliedenergistics2.device_missing_channel=Device Missing Channel theoneprobe.appliedenergistics2.device_missing_channel=Device Missing Channel
@@ -427,15 +427,15 @@ theoneprobe.appliedenergistics2.locked=Locked
theoneprobe.appliedenergistics2.unlocked=Unlocked theoneprobe.appliedenergistics2.unlocked=Unlocked
theoneprobe.appliedenergistics2.showing=Showing theoneprobe.appliedenergistics2.showing=Showing
theoneprobe.appliedenergistics2.contains=Contains theoneprobe.appliedenergistics2.contains=Contains
theoneprobe.appliedenergistics2.channels=%1$d of %2$d Channels theoneprobe.appliedenergistics2.channels=§2%1$d§r of §4%2$d§r Channels
theoneprobe.appliedenergistics2.p2p_unlinked=Unlinked theoneprobe.appliedenergistics2.p2p_unlinked=Unlinked
theoneprobe.appliedenergistics2.p2p_input_one_output=Linked (Input Side) - 1 Output theoneprobe.appliedenergistics2.p2p_input_one_output=Linked (Input Side) - 1 Output
theoneprobe.appliedenergistics2.p2p_input_many_outputs=Linked (Input Side) - %d Outputs theoneprobe.appliedenergistics2.p2p_input_many_outputs=Linked (Input Side) - §4%d§r Outputs
theoneprobe.appliedenergistics2.p2p_output_one_input=Linked (Output Side) - 1 Input theoneprobe.appliedenergistics2.p2p_output_one_input=Linked (Output Side) - 1 Input
theoneprobe.appliedenergistics2.p2p_output_many_inputs=Linked (Output Side) - %d Inputs theoneprobe.appliedenergistics2.p2p_output_many_inputs=Linked (Output Side) - §2%d§r Inputs
theoneprobe.appliedenergistics2.p2p_output=Linked (Output Side) theoneprobe.appliedenergistics2.p2p_output=Linked (Output Side)
theoneprobe.appliedenergistics2.p2p_frequency=Frequency: %1$s theoneprobe.appliedenergistics2.p2p_frequency=Frequency: §5%1$s§r
theoneprobe.appliedenergistics2.stored_energy=%1$d / %2$d theoneprobe.appliedenergistics2.stored_energy=§2%1$d§к / §4%2$d§r
// Items // Items
item.appliedenergistics2.storage_cell_1k.name=§61k§r ME Storage Cell item.appliedenergistics2.storage_cell_1k.name=§61k§r ME Storage Cell
@@ -552,8 +552,8 @@ item.appliedenergistics2.multi_part.inverted_toggle_bus.name=ME Inverted Toggle
item.appliedenergistics2.multi_part.toggle_bus.name=ME Toggle Bus item.appliedenergistics2.multi_part.toggle_bus.name=ME Toggle Bus
item.appliedenergistics2.multi_part.crafting_monitor.name=ME Crafting Monitor item.appliedenergistics2.multi_part.crafting_monitor.name=ME Crafting Monitor
item.appliedenergistics2.multi_part.interface_terminal.name=ME Interface Terminal item.appliedenergistics2.multi_part.interface_terminal.name=ME Interface Terminal
item.appliedenergistics2.multi_part.interface_configuration_terminal.name=ME Configuration Interface Terminal item.appliedenergistics2.multi_part.interface_configuration_terminal.name=ME Interface Configuration Terminal
item.appliedenergistics2.multi_part.fluid_interface_configuration_terminal.name=ME Configuration Fluid Interface Terminal item.appliedenergistics2.multi_part.fluid_interface_configuration_terminal.name=ME Fluid Interface Configuration Terminal
item.appliedenergistics2.multi_part.fluid_terminal.name=ME Fluid Terminal item.appliedenergistics2.multi_part.fluid_terminal.name=ME Fluid Terminal
item.appliedenergistics2.multi_part.invalid_type.name=Disabled Item item.appliedenergistics2.multi_part.invalid_type.name=Disabled Item
@@ -2,23 +2,23 @@
tile.appliedenergistics2.cable_bus.name=AE2 кабель и/или шина tile.appliedenergistics2.cable_bus.name=AE2 кабель и/или шина
tile.appliedenergistics2.cell_workbench.name=Верстак для ячеек tile.appliedenergistics2.cell_workbench.name=Верстак для ячеек
tile.appliedenergistics2.charger.name=Зарядник tile.appliedenergistics2.charger.name=Зарядник
tile.appliedenergistics2.chest.name=МЭ сундук tile.appliedenergistics2.chest.name=МЭ Сундук
tile.appliedenergistics2.condenser.name=Конденсатор материи tile.appliedenergistics2.condenser.name=Конденсатор материи
tile.appliedenergistics2.controller.name=МЭ контроллер tile.appliedenergistics2.controller.name=МЭ Контроллер
tile.appliedenergistics2.crank.name=Деревянная рукоятка tile.appliedenergistics2.crank.name=Деревянная рукоятка
tile.appliedenergistics2.creative_energy_cell.name=Творческая энергетическая ячейка tile.appliedenergistics2.creative_energy_cell.name=Творческая энергетическая ячейка
tile.appliedenergistics2.dense_energy_cell.name=Плотная энергетическая ячейка tile.appliedenergistics2.dense_energy_cell.name=Плотная энергетическая ячейка
tile.appliedenergistics2.energy_cell.name=Энергетическая ячейка tile.appliedenergistics2.energy_cell.name=Энергетическая ячейка
tile.appliedenergistics2.drive.name=МЭ накопитель tile.appliedenergistics2.drive.name=МЭ Накопитель
tile.appliedenergistics2.energy_acceptor.name=Приёмщик энергии tile.appliedenergistics2.energy_acceptor.name=Приёмщик энергии
tile.appliedenergistics2.grindstone.name=Кварцевый дробитель tile.appliedenergistics2.grindstone.name=Кварцевый дробитель
tile.appliedenergistics2.matrix_frame.name=Каркас матрицы tile.appliedenergistics2.matrix_frame.name=Каркас матрицы
tile.appliedenergistics2.io_port.name=МЭ порт ввода\вывода tile.appliedenergistics2.io_port.name=МЭ Порт ввода\вывода
tile.appliedenergistics2.inscriber.name=Высекатель tile.appliedenergistics2.inscriber.name=Высекатель
tile.appliedenergistics2.interface.name=МЭ интерфейс tile.appliedenergistics2.interface.name=МЭ Интерфейс
tile.appliedenergistics2.fluid_interface.name=МЭ жидкостный интерфейс tile.appliedenergistics2.fluid_interface.name=МЭ Жидкостный интерфейс
tile.appliedenergistics2.quantum_link.name=МЭ камера квантовой связи tile.appliedenergistics2.quantum_link.name=МЭ Камера квантовой связи
tile.appliedenergistics2.quantum_ring.name=МЭ квантовое кольцо tile.appliedenergistics2.quantum_ring.name=МЭ Квантовое кольцо
tile.appliedenergistics2.fluix_block.name=Изменчивый блок tile.appliedenergistics2.fluix_block.name=Изменчивый блок
tile.appliedenergistics2.quartz_block.name=Блок истинного кварца tile.appliedenergistics2.quartz_block.name=Блок истинного кварца
tile.appliedenergistics2.chiseled_quartz_block.name=Резной блок истинного кварца tile.appliedenergistics2.chiseled_quartz_block.name=Резной блок истинного кварца
@@ -31,10 +31,10 @@ tile.appliedenergistics2.spatial_io_port.name=Пространственный
tile.appliedenergistics2.spatial_pylon.name=Пространственный пилон tile.appliedenergistics2.spatial_pylon.name=Пространственный пилон
tile.appliedenergistics2.tiny_tnt.name=Маленький динамит tile.appliedenergistics2.tiny_tnt.name=Маленький динамит
tile.appliedenergistics2.vibration_chamber.name=Вибрационная камера tile.appliedenergistics2.vibration_chamber.name=Вибрационная камера
tile.appliedenergistics2.wireless_access_point.name=МЭ беспроводная точка доступа tile.appliedenergistics2.wireless_access_point.name=МЭ Беспроводная точка доступа
tile.appliedenergistics2.quartz_ore.name=Руда истинного кварца tile.appliedenergistics2.quartz_ore.name=Руда истинного кварца
tile.appliedenergistics2.charged_quartz_ore.name=Заряженная руда истинного кварца tile.appliedenergistics2.charged_quartz_ore.name=Заряженная руда истинного кварца
tile.appliedenergistics2.security_station.name=МЭ терминал безопасности tile.appliedenergistics2.security_station.name=МЭ Терминал безопасности
tile.appliedenergistics2.quartz_growth_accelerator.name=Ускоритель роста кристаллов tile.appliedenergistics2.quartz_growth_accelerator.name=Ускоритель роста кристаллов
tile.appliedenergistics2.sky_stone_block.name=Небесный камень tile.appliedenergistics2.sky_stone_block.name=Небесный камень
tile.appliedenergistics2.smooth_sky_stone_block.name=Блок небесного камня tile.appliedenergistics2.smooth_sky_stone_block.name=Блок небесного камня
@@ -73,8 +73,9 @@ tile.appliedenergistics2.sky_stone_small_brick_slab.name=Плита из мал
tile.appliedenergistics2.sky_stone_slab.name=Плита из небесного камня tile.appliedenergistics2.sky_stone_slab.name=Плита из небесного камня
// Chat Messages // Chat Messages
chat.appliedenergistics2.ChestCannotReadStorageCell=МЭ сундук не может прочитать ячейку хранения. chat.appliedenergistics2.ChestCannotReadStorageCell=МЭ Сундук не может прочитать ячейку хранения.
chat.appliedenergistics2.SettingCleared=Карта памяти очищена. chat.appliedenergistics2.SettingCleared=Карта памяти очищена.
chat.appliedenergistics2.MissingPatternsToEncode=Недостаточно шаблонов для завершения копирования.
chat.appliedenergistics2.OutOfRange=Беспроводная сеть вне зоны действия. chat.appliedenergistics2.OutOfRange=Беспроводная сеть вне зоны действия.
chat.appliedenergistics2.InvalidMachine=Неподходящий механизм. chat.appliedenergistics2.InvalidMachine=Неподходящий механизм.
chat.appliedenergistics2.LoadedSettings=Настройки успешно загружены. chat.appliedenergistics2.LoadedSettings=Настройки успешно загружены.
@@ -168,6 +169,8 @@ gui.appliedenergistics2.StoredFluids=Хранящиеся жидкости
gui.appliedenergistics2.Terminal=Терминал gui.appliedenergistics2.Terminal=Терминал
gui.appliedenergistics2.InterfaceTerminal=Терминал интерфейсов gui.appliedenergistics2.InterfaceTerminal=Терминал интерфейсов
gui.appliedenergistics2.InterfaceTerminalHint=Показать или спрятать в терминале интерфейсов. gui.appliedenergistics2.InterfaceTerminalHint=Показать или спрятать в терминале интерфейсов.
gui.appliedenergistics2.InterfaceConfigurationTerminal=Терминал конфигурации интерфейса
gui.appliedenergistics2.FluidInterfaceConfigurationTerminal=Терминал жидкостной конфигурации интерфейсов
gui.appliedenergistics2.FormationPlane=Плоскость формирования gui.appliedenergistics2.FormationPlane=Плоскость формирования
gui.appliedenergistics2.FluidFormationPlane=Плоскость формирования жидкости gui.appliedenergistics2.FluidFormationPlane=Плоскость формирования жидкости
gui.appliedenergistics2.VibrationChamber=Вибрационная камера gui.appliedenergistics2.VibrationChamber=Вибрационная камера
@@ -175,7 +178,6 @@ gui.appliedenergistics2.NetworkDetails=Подробности сети
gui.appliedenergistics2.StorageCells=МЭ Ячейки хранения gui.appliedenergistics2.StorageCells=МЭ Ячейки хранения
gui.appliedenergistics2.IOBuses=МЭ Шина импорта\экспорта gui.appliedenergistics2.IOBuses=МЭ Шина импорта\экспорта
gui.appliedenergistics2.IOBusesFluids=МЭ Жидкостная шина импорта\экспорта gui.appliedenergistics2.IOBusesFluids=МЭ Жидкостная шина импорта\экспорта
gui.appliedenergistics2.IOBusesFluids=МЭ Шина импорта/экспорта жидкости
gui.appliedenergistics2.Stores=Хранит gui.appliedenergistics2.Stores=Хранит
gui.appliedenergistics2.BytesUsed=Байт использовано gui.appliedenergistics2.BytesUsed=Байт использовано
gui.appliedenergistics2.Types=Типов gui.appliedenergistics2.Types=Типов
@@ -220,7 +222,7 @@ gui.appliedenergistics2.Crafting=Крафт
gui.appliedenergistics2.Scheduled=Запланировано gui.appliedenergistics2.Scheduled=Запланировано
gui.appliedenergistics2.CraftingStatus=Статус крафта gui.appliedenergistics2.CraftingStatus=Статус крафта
gui.appliedenergistics2.FromStorage=Доступно gui.appliedenergistics2.FromStorage=Доступно
gui.appliedenergistics2.ToCraft=Необходимо скрафтить gui.appliedenergistics2.ToCraft=Нужно еще
gui.appliedenergistics2.CraftingPlan=План крафта gui.appliedenergistics2.CraftingPlan=План крафта
gui.appliedenergistics2.Automatic=Автоматически gui.appliedenergistics2.Automatic=Автоматически
gui.appliedenergistics2.Start=Старт gui.appliedenergistics2.Start=Старт
@@ -261,10 +263,10 @@ gui.tooltips.appliedenergistics2.SubstitutionsOff=Замещения выклю
gui.tooltips.appliedenergistics2.Encode=Закодировать шаблон gui.tooltips.appliedenergistics2.Encode=Закодировать шаблон
gui.tooltips.appliedenergistics2.EncodeDescription=Запишите введённый шаблон на текущий закодированный шаблон, или на доступный чистый шаблон. gui.tooltips.appliedenergistics2.EncodeDescription=Запишите введённый шаблон на текущий закодированный шаблон, или на доступный чистый шаблон.
gui.tooltips.appliedenergistics2.FuzzyMode=Нечёткое сравнение gui.tooltips.appliedenergistics2.FuzzyMode=Нечёткое сравнение
gui.tooltips.appliedenergistics2.FZPercent_25=Разделять урон с 25% gui.tooltips.appliedenergistics2.FZPercent_25=Разделять урон с §a25%§r
gui.tooltips.appliedenergistics2.FZPercent_50=Разделять урон с 50% gui.tooltips.appliedenergistics2.FZPercent_50=Разделять урон с §e50%§r
gui.tooltips.appliedenergistics2.FZPercent_75=Разделять урон с 75% gui.tooltips.appliedenergistics2.FZPercent_75=Разделять урон с §675%§r
gui.tooltips.appliedenergistics2.FZPercent_99=Разделять урон с 99% gui.tooltips.appliedenergistics2.FZPercent_99=Разделять урон с §499%§r
gui.tooltips.appliedenergistics2.SortOrder=Порядок сортировки gui.tooltips.appliedenergistics2.SortOrder=Порядок сортировки
gui.tooltips.appliedenergistics2.SortBy=Сортировать по gui.tooltips.appliedenergistics2.SortBy=Сортировать по
gui.tooltips.appliedenergistics2.FZIgnoreAll=Любое соответствие gui.tooltips.appliedenergistics2.FZIgnoreAll=Любое соответствие
@@ -288,8 +290,8 @@ gui.tooltips.appliedenergistics2.TrashController=Удаление по нажа
gui.tooltips.appliedenergistics2.InterfaceBlockingMode=Блокирующий режим gui.tooltips.appliedenergistics2.InterfaceBlockingMode=Блокирующий режим
gui.tooltips.appliedenergistics2.InterfaceCraftingMode=Режим крафта gui.tooltips.appliedenergistics2.InterfaceCraftingMode=Режим крафта
gui.tooltips.appliedenergistics2.Trash=Уничтожить предметы gui.tooltips.appliedenergistics2.Trash=Уничтожить предметы
gui.tooltips.appliedenergistics2.MatterBalls=Конденсировать в шары материи\n%s за предмет gui.tooltips.appliedenergistics2.MatterBalls=Конденсировать в шары материи\n§a%s§r за предмет
gui.tooltips.appliedenergistics2.Singularity=Конденсировать в сингулярности\n%s за предмет gui.tooltips.appliedenergistics2.Singularity=Конденсировать в сингулярности\n§a%s§r за предмет
gui.tooltips.appliedenergistics2.Read=Только извлекать gui.tooltips.appliedenergistics2.Read=Только извлекать
gui.tooltips.appliedenergistics2.Write=Только вкладывать gui.tooltips.appliedenergistics2.Write=Только вкладывать
gui.tooltips.appliedenergistics2.ReadWrite=Двухсторонний gui.tooltips.appliedenergistics2.ReadWrite=Двухсторонний
@@ -408,16 +410,16 @@ waila.appliedenergistics2.Locked=Заблокировано
waila.appliedenergistics2.Unlocked=Разблокировано waila.appliedenergistics2.Unlocked=Разблокировано
waila.appliedenergistics2.Showing=Показывает waila.appliedenergistics2.Showing=Показывает
waila.appliedenergistics2.Contains=Содержит waila.appliedenergistics2.Contains=Содержит
waila.appliedenergistics2.Channels=Каналы: %1$d из %2$d waila.appliedenergistics2.Channels=Каналы: §2%1$d§r из §4%2$d§r
waila.appliedenergistics2.P2PUnlinked=Не связанный waila.appliedenergistics2.P2PUnlinked=Не связанный
waila.appliedenergistics2.p2p_input_one_output=Связанный (Сторона ввода) waila.appliedenergistics2.p2p_input_one_output=Связанный (Сторона входа) - 1 Выход
waila.appliedenergistics2.p2p_input_many_outputs=Связанный (Сторона ввода) - %d выводов waila.appliedenergistics2.p2p_input_many_outputs=Связанный (Сторона входа) - §4%d§r Выходов
waila.appliedenergistics2.p2p_output_one_input=Связанный (Сторона вывода) waila.appliedenergistics2.p2p_output_one_input=Связанный (Сторона выхода) - 1 Вход
waila.appliedenergistics2.p2p_output_many_inputs=Связанный (Сторона вывода) - %d выводов waila.appliedenergistics2.p2p_output_many_inputs=Связанный (Сторона выхода) - §2%d§r Входов
waila.appliedenergistics2.P2POutput=Связанный (Сторона вывода) waila.appliedenergistics2.P2POutput=Связанный (Сторона выхода)
// TheOneProbe // TheOneProbe
theoneprobe.appliedenergistics2.crafting=Создается: %1$s theoneprobe.appliedenergistics2.crafting=Создается: §2%1$s§r
theoneprobe.appliedenergistics2.device_online=Устройство включено theoneprobe.appliedenergistics2.device_online=Устройство включено
theoneprobe.appliedenergistics2.device_offline=Устройство выключено theoneprobe.appliedenergistics2.device_offline=Устройство выключено
theoneprobe.appliedenergistics2.device_missing_channel=У устройства нет канала. theoneprobe.appliedenergistics2.device_missing_channel=У устройства нет канала.
@@ -425,15 +427,15 @@ theoneprobe.appliedenergistics2.locked=Заблокировано
theoneprobe.appliedenergistics2.unlocked=Разблокировано theoneprobe.appliedenergistics2.unlocked=Разблокировано
theoneprobe.appliedenergistics2.showing=Показывает theoneprobe.appliedenergistics2.showing=Показывает
theoneprobe.appliedenergistics2.contains=Содержит theoneprobe.appliedenergistics2.contains=Содержит
theoneprobe.appliedenergistics2.channels=Каналы: %1$d из %2$d theoneprobe.appliedenergistics2.channels=Каналы: §2%1$d§r из §4%2$d§r
theoneprobe.appliedenergistics2.p2p_unlinked=Не связанный theoneprobe.appliedenergistics2.p2p_unlinked=Не связанный
theoneprobe.appliedenergistics2.p2p_input_one_output=Связанный (сторона ввода) theoneprobe.appliedenergistics2.p2p_input_one_output=Связанный (Сторона входа) - 1 Выход
theoneprobe.appliedenergistics2.p2p_input_many_outputs=Связанный (сторона ввода) - %d выводов theoneprobe.appliedenergistics2.p2p_input_many_outputs=Связанный (Сторона входа) - §4%d§r Выходов
theoneprobe.appliedenergistics2.p2p_output_one_input=Связанный (Сторона вывода) theoneprobe.appliedenergistics2.p2p_output_one_input=Связанный (Сторона выхода) - 1 Вход
theoneprobe.appliedenergistics2.p2p_output_many_inputs=Связанный (Сторона вывода) - %d выводов theoneprobe.appliedenergistics2.p2p_output_many_inputs=Связанный (Сторона выхода) - §2%d§r Входов
theoneprobe.appliedenergistics2.p2p_output=Связанный (Сторона вывода) theoneprobe.appliedenergistics2.p2p_output=Связанный (Сторона выхода)
theoneprobe.appliedenergistics2.p2p_frequency=Частота: %1$s theoneprobe.appliedenergistics2.p2p_frequency=Частота: §5%1$s§r
theoneprobe.appliedenergistics2.stored_energy=%1$d / %2$d theoneprobe.appliedenergistics2.stored_energy=§2%1$d§к / §4%2$d§r
// Items // Items
item.appliedenergistics2.storage_cell_1k.name=§61k§r МЭ Ячейка хранения item.appliedenergistics2.storage_cell_1k.name=§61k§r МЭ Ячейка хранения
@@ -444,7 +446,7 @@ item.appliedenergistics2.fluid_storage_cell_1k.name=§61k§r МЭ Жидкост
item.appliedenergistics2.fluid_storage_cell_4k.name=§e4k§r МЭ Жидкостная ячейка хранения item.appliedenergistics2.fluid_storage_cell_4k.name=§e4k§r МЭ Жидкостная ячейка хранения
item.appliedenergistics2.fluid_storage_cell_16k.name=§a16k§r МЭ Жидкостная ячейка хранения item.appliedenergistics2.fluid_storage_cell_16k.name=§a16k§r МЭ Жидкостная ячейка хранения
item.appliedenergistics2.fluid_storage_cell_64k.name=§b64k§r МЭ Жидкостная ячейка хранения item.appliedenergistics2.fluid_storage_cell_64k.name=§b64k§r МЭ Жидкостная ячейка хранения
item.appliedenergistics2.creative_storage_cell.name=Творческая МЭ ячейка хранения item.appliedenergistics2.creative_storage_cell.name=Творческая МЭ Ячейка хранения
item.appliedenergistics2.encoded_pattern.name=Кодированный шаблон item.appliedenergistics2.encoded_pattern.name=Кодированный шаблон
item.appliedenergistics2.view_cell.name=Ячейка представления item.appliedenergistics2.view_cell.name=Ячейка представления
item.appliedenergistics2.facade.name=Кабельный фасад item.appliedenergistics2.facade.name=Кабельный фасад
@@ -535,12 +537,12 @@ item.appliedenergistics2.multi_part.fluid_formation_plane.name=МЭ Жидкос
item.appliedenergistics2.multi_part.import_bus.name=МЭ Шина импорта item.appliedenergistics2.multi_part.import_bus.name=МЭ Шина импорта
item.appliedenergistics2.multi_part.fluid_import_bus.name=МЭ Жидкостная шина импорта item.appliedenergistics2.multi_part.fluid_import_bus.name=МЭ Жидкостная шина импорта
item.appliedenergistics2.multi_part.interface.name=МЭ Интерфейс item.appliedenergistics2.multi_part.interface.name=МЭ Интерфейс
item.appliedenergistics2.multi_part.fluid_interface.name=МЭ Интерфейс жидкостей item.appliedenergistics2.multi_part.fluid_interface.name=МЭ Жидкостый нтерфейс
item.appliedenergistics2.multi_part.level_emitter.name=МЭ Излучатель уровня item.appliedenergistics2.multi_part.level_emitter.name=МЭ Излучатель уровня
item.appliedenergistics2.multi_part.fluid_level_emitter.name=МЭ Излучатель уровня item.appliedenergistics2.multi_part.fluid_level_emitter.name=МЭ Излучатель уровня
item.appliedenergistics2.multi_part.p2p_tunnel.name=Туннель точка-точка item.appliedenergistics2.multi_part.p2p_tunnel.name=Туннель точка-точка
item.appliedenergistics2.multi_part.pattern_terminal.name=МЭ Терминал шаблонов item.appliedenergistics2.multi_part.pattern_terminal.name=МЭ Терминал шаблонов
item.appliedenergistics2.multi_part.expanded_processing_pattern_terminal.name=ME терминал расширенной схемы обработки item.appliedenergistics2.multi_part.expanded_processing_pattern_terminal.name=ME Терминал расширенных шаблонов
item.appliedenergistics2.multi_part.quartz_fiber.name=Кварцевое оптическое волокно item.appliedenergistics2.multi_part.quartz_fiber.name=Кварцевое оптическое волокно
item.appliedenergistics2.multi_part.storage_bus.name=МЭ Шина хранения item.appliedenergistics2.multi_part.storage_bus.name=МЭ Шина хранения
item.appliedenergistics2.multi_part.oredict_storage_bus.name=МЭ Шина хранения по словарю руд item.appliedenergistics2.multi_part.oredict_storage_bus.name=МЭ Шина хранения по словарю руд
@@ -550,6 +552,8 @@ item.appliedenergistics2.multi_part.inverted_toggle_bus.name=МЭ Инверти
item.appliedenergistics2.multi_part.toggle_bus.name=МЭ Шина переключения item.appliedenergistics2.multi_part.toggle_bus.name=МЭ Шина переключения
item.appliedenergistics2.multi_part.crafting_monitor.name=МЭ Монитор крафта item.appliedenergistics2.multi_part.crafting_monitor.name=МЭ Монитор крафта
item.appliedenergistics2.multi_part.interface_terminal.name=МЭ Терминал интерфейсов item.appliedenergistics2.multi_part.interface_terminal.name=МЭ Терминал интерфейсов
item.appliedenergistics2.multi_part.interface_configuration_terminal.name=МЭ Терминал конфигурации интерфейсов
item.appliedenergistics2.multi_part.fluid_interface_configuration_terminal.name=МЭ Терминал жидкостной конфигурации интерфейсов
item.appliedenergistics2.multi_part.fluid_terminal.name=МЭ Жидкостный терминал item.appliedenergistics2.multi_part.fluid_terminal.name=МЭ Жидкостный терминал
item.appliedenergistics2.multi_part.invalid_type.name=Отключенный предмет item.appliedenergistics2.multi_part.invalid_type.name=Отключенный предмет
@@ -623,7 +627,7 @@ achievement.ae2.Charger.desc=Сделайте зарядник!
achievement.ae2.CrystalGrowthAccelerator=Ускоритель - ещё мягко сказано! achievement.ae2.CrystalGrowthAccelerator=Ускоритель - ещё мягко сказано!
achievement.ae2.CrystalGrowthAccelerator.desc=Сделайте ускоритель роста кристаллов! achievement.ae2.CrystalGrowthAccelerator.desc=Сделайте ускоритель роста кристаллов!
achievement.ae2.GlassCable=Изменчивое энергетическое соединение! achievement.ae2.GlassCable=Изменчивое энергетическое соединение!
achievement.ae2.GlassCable.desc=Сделайте МЭ стеклянный кабель! achievement.ae2.GlassCable.desc=Сделайте МЭ Стеклянный кабель!
achievement.ae2.Networking1=Сетевое подмастерье! achievement.ae2.Networking1=Сетевое подмастерье!
achievement.ae2.Networking1.desc=Достигните 8 каналов, подключая устройства к сети! achievement.ae2.Networking1.desc=Достигните 8 каналов, подключая устройства к сети!
achievement.ae2.Controller=Коммутатор сети! achievement.ae2.Controller=Коммутатор сети!
@@ -650,8 +654,8 @@ achievement.ae2.QNB=Квантовое туннелирование!
achievement.ae2.QNB.desc=Сделайте квантовое соединение! achievement.ae2.QNB.desc=Сделайте квантовое соединение!
// Stats // Stats
stat.ae2.ItemsInserted=Предметов добавлено в МЭ хранилище stat.ae2.ItemsInserted=Предметов добавлено в МЭ Хранилище
stat.ae2.ItemsExtracted=Предметов извлечено из МЭ хранилища stat.ae2.ItemsExtracted=Предметов извлечено из МЭ Хранилища
stat.ae2.TurnedCranks=Сломано рукояток stat.ae2.TurnedCranks=Сломано рукояток
//Keys //Keys
@@ -1,12 +1,122 @@
{ {
"parent": "block/cube", "credit": "Made with Blockbench",
"textures": { "textures": {
"particle": "appliedenergistics2:blocks/chest/side", "up": "appliedenergistics2:blocks/chest/top",
"up": "appliedenergistics2:blocks/chest/top", "down": "appliedenergistics2:blocks/chest/bottom",
"down": "appliedenergistics2:blocks/chest/bottom", "north": "appliedenergistics2:blocks/chest/front",
"north": "appliedenergistics2:blocks/chest/front", "particle": "appliedenergistics2:blocks/chest/side",
"east": "appliedenergistics2:blocks/chest/side", "east": "appliedenergistics2:blocks/chest/side"
"south": "appliedenergistics2:blocks/chest/side", },
"west": "appliedenergistics2:blocks/chest/side" "elements": [
} {
} "name": "inside_border_right",
"from": [4, 3, 0],
"to": [5, 8, 1],
"rotation": {"angle": 0, "axis": "y", "origin": [8, 13, 1]},
"faces": {
"east": {"uv": [0, 6, 1, 11], "rotation": 180, "texture": "#down"}
}
},
{
"name": "inside_right",
"from": [2, 1, 1],
"to": [5, 12, 11],
"rotation": {"angle": 0, "axis": "y", "origin": [9, 11, 3]},
"faces": {
"east": {"uv": [5, 2, 14, 13], "texture": "#down"}
}
},
{
"from": [0, 0, 0],
"to": [16, 16, 16],
"faces": {
"north": {"uv": [0, 0, 16, 16], "texture": "#north"},
"east": {"uv": [0, 0, 16, 16], "texture": "#east"},
"south": {"uv": [0, 0, 16, 16], "texture": "#east"},
"west": {"uv": [0, 0, 16, 16], "texture": "#east"},
"up": {"uv": [0, 0, 16, 16], "texture": "#up"},
"down": {"uv": [0, 0, 16, 16], "texture": "#down"}
}
},
{
"name": "inside_back",
"from": [5, 4, 7],
"to": [11, 7, 10],
"rotation": {"angle": 0, "axis": "y", "origin": [19, 11, 8]},
"faces": {
"north": {"uv": [3, 2, 14, 14], "texture": "#down"}
}
},
{
"name": "inside_left",
"from": [11, 1, 1],
"to": [14, 12, 11],
"rotation": {"angle": 0, "axis": "y", "origin": [18, 11, 3]},
"faces": {
"north": {"uv": [2, 5, 2, 5], "texture": "#down"},
"west": {"uv": [5, 2, 14, 13], "texture": "#down"}
}
},
{
"name": "inside_top",
"from": [5, 6, 1],
"to": [11, 9, 11],
"rotation": {"angle": 0, "axis": "y", "origin": [15, 16, 3]},
"faces": {
"north": {"uv": [14, 12, 14, 12], "texture": "#down"},
"down": {"uv": [12, 15, 12, 15], "texture": "#down"}
}
},
{
"name": "inside_bottom",
"from": [5, 1, 1],
"to": [11, 4, 11],
"rotation": {"angle": 0, "axis": "y", "origin": [15, 11, 3]},
"faces": {
"north": {"uv": [1, 6, 1, 6], "texture": "#down"},
"up": {"uv": [6, 1, 6, 1], "texture": "#down"}
}
},
{
"name": "inside_border_bottom",
"from": [4, 0, 0],
"to": [12, 3, 9],
"rotation": {"angle": 0, "axis": "y", "origin": [15, 10, 1]},
"faces": {
"up": {"uv": [0, 4, 9, 13], "rotation": 90, "texture": "#missing"}
}
},
{
"name": "inside_border_top",
"from": [5, 7, 0],
"to": [12, 10, 9],
"rotation": {"angle": 0, "axis": "y", "origin": [15, 17, 1]},
"faces": {
"down": {"uv": [0, 4, 9, 13], "rotation": 270, "texture": "#down"}
}
},
{
"name": "inside_border_left",
"from": [11, 3, 0],
"to": [12, 8, 1],
"rotation": {"angle": 0, "axis": "y", "origin": [15, 13, 1]},
"faces": {
"west": {"uv": [0, 8, 1, 13], "texture": "#down"}
}
}
],
"groups": [
{
"name": "chest",
"origin": [8, 8, 8],
"color": 0,
"children": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
},
{
"name": "cells",
"origin": [8, 8, 8],
"color": 0,
"children": []
}
]
}
@@ -1,24 +1,4 @@
{ {
"textures": { "textures": {},
"state": "appliedenergistics2:blocks/chest/cell_state_empty" "elements": []
}, }
"elements": [
{
"from": [
0,
0,
0
],
"to": [
16,
16,
16
],
"faces": {
"north": {
"texture": "#state"
}
}
}
]
}
@@ -1,47 +1,38 @@
{ {
"ae2_uvl_marker": true, "credit": "Made with Blockbench",
"textures": { "textures": {
"backdrop": "appliedenergistics2:blocks/chest/cell_state_backdrop", "front": "appliedenergistics2:blocks/chest/cell_state_backdrop",
"state": "appliedenergistics2:blocks/chest/cell_state_full" "state": "appliedenergistics2:blocks/chest/cell_state_full",
}, "top_front": "appliedenergistics2:blocks/drive_cell_states_emissive"
"elements": [ },
{ "elements": [
"from": [ {
0, "name": "Cell Backdrop",
0, "from": [5, 4, 0],
0 "to": [11, 6, 1],
], "shade": false,
"to": [ "faces": {
16, "north": {"uv": [5, 10, 11, 12], "texture": "#front"},
16, "up": {"uv": [5, 10, 11, 11], "texture": "#front"}
16 }
], },
"faces": { {
"north": { "name": "Cell Light",
"texture": "#backdrop" "from": [9, 4, 0],
} "to": [10, 5, 0],
} "shade": false,
}, "faces": {
{ "north": {"uv": [6, 11, 7, 12], "texture": "#state"}
"from": [ }
0, },
0, {
0 "name": "Cell Light",
], "from": [9, 4, 0],
"to": [ "to": [10, 5, 0],
16, "shade": false,
16, "faces": {
16 "north": {"uv": [1, 7, 2, 8], "texture": "#top_front"}
], }
"faces": { }
"north": { ]
"texture": "#state", }
"uvlightmap": {
"block": 0.007,
"sky": 0.007
}
}
}
}
]
}
@@ -1,24 +1,17 @@
{ {
"textures": { "credit": "Made with Blockbench",
"state": "appliedenergistics2:blocks/chest/cell_state_offline" "textures": {
}, "front": "appliedenergistics2:blocks/chest/cell_state_offline"
"elements": [ },
{ "elements": [
"from": [ {
0, "from": [5, 4, 0],
0, "to": [11, 6, 1],
0 "shade": false,
], "faces": {
"to": [ "north": {"uv": [5, 10, 11, 12], "texture": "#front"},
16, "up": {"uv": [5, 10, 11, 11], "texture": "#front"}
16, }
16 }
], ]
"faces": { }
"north": {
"texture": "#state"
}
}
}
]
}
@@ -1,47 +1,38 @@
{ {
"ae2_uvl_marker": true, "ae2_uvl_marker": true,
"textures": { "parent": "block/block",
"backdrop": "appliedenergistics2:blocks/chest/cell_state_backdrop", "textures": {
"state": "appliedenergistics2:blocks/chest/cell_state_online" "front": "appliedenergistics2:blocks/chest/cell_state_backdrop",
}, "state": "appliedenergistics2:blocks/chest/cell_state_online",
"elements": [ "top_front": "appliedenergistics2:blocks/drive_cell_states_emissive"
{ },
"from": [ "elements": [
0, {
0, "name": "Cell Backdrop",
0 "from": [5, 4, 0],
], "to": [11, 6, 1],
"to": [ "shade": false,
16, "faces": {
16, "north": {"uv": [5, 10, 11, 12], "texture": "#front"},
16 "up": {"uv": [5, 10, 11, 11], "texture": "#front"}
], }
"faces": { },
"north": { {
"texture": "#backdrop" "name": "Cell Light",
} "from": [9, 4, 0],
} "to": [10, 5, 0],
}, "shade": false,
{ "faces": {
"from": [ "north": {"uv": [6, 11, 7, 12], "texture": "#state"}
0, }
0, },
0 {
], "name": "Cell Light",
"to": [ "from": [9, 4, 0],
16, "to": [10, 5, 0],
16, "faces": {
16 "north": {"uv": [1, 3, 2, 4], "texture": "#top_front"}
], }
"faces": { }
"north": { ]
"texture": "#state", }
"uvlightmap": {
"block": 0.007,
"sky": 0.007
}
}
}
}
]
}
@@ -1,47 +1,38 @@
{ {
"ae2_uvl_marker": true, "credit": "Made with Blockbench",
"textures": { "textures": {
"backdrop": "appliedenergistics2:blocks/chest/cell_state_backdrop", "front": "appliedenergistics2:blocks/chest/cell_state_backdrop",
"state": "appliedenergistics2:blocks/chest/cell_state_types_full" "state": "appliedenergistics2:blocks/chest/cell_state_types_full",
}, "top_front": "appliedenergistics2:blocks/drive_cell_states_emissive"
"elements": [ },
{ "elements": [
"from": [ {
0, "name": "Cell Backdrop",
0, "from": [5, 4, 0],
0 "to": [11, 6, 1],
], "shade": false,
"to": [ "faces": {
16, "north": {"uv": [5, 10, 11, 12], "texture": "#front"},
16, "up": {"uv": [5, 10, 11, 11], "texture": "#front"}
16 }
], },
"faces": { {
"north": { "name": "Cell Light",
"texture": "#backdrop" "from": [9, 4, 0],
} "to": [10, 5, 0],
} "shade": false,
}, "faces": {
{ "north": {"uv": [6, 11, 7, 12], "texture": "#state"}
"from": [ }
0, },
0, {
0 "name": "Cell Light",
], "from": [9, 4, 0],
"to": [ "to": [10, 5, 0],
16, "shade": false,
16, "faces": {
16 "north": {"uv": [1, 5, 2, 6], "texture": "#top_front"}
], }
"faces": { }
"north": { ]
"texture": "#state", }
"uvlightmap": {
"block": 0.007,
"sky": 0.007
}
}
}
}
]
}
@@ -22,4 +22,4 @@
} }
} }
] ]
} }
@@ -21,9 +21,10 @@
"up": { "up": {
"texture": "#lights_bright", "texture": "#lights_bright",
"tintindex": 3, "tintindex": 3,
"unlit": true,
"uvlightmap": { "uvlightmap": {
"block": 0.007, "block": 15,
"sky": 0.007 "sky": 15
} }
} }
} }
@@ -43,9 +44,10 @@
"up": { "up": {
"texture": "#lights_medium", "texture": "#lights_medium",
"tintindex": 2, "tintindex": 2,
"unlit": true,
"uvlightmap": { "uvlightmap": {
"block": 0.007, "block": 15,
"sky": 0.007 "sky": 15
} }
} }
} }
@@ -65,12 +67,13 @@
"up": { "up": {
"texture": "#lights_dark", "texture": "#lights_dark",
"tintindex": 1, "tintindex": 1,
"unlit": true,
"uvlightmap": { "uvlightmap": {
"block": 0.007, "block": 15,
"sky": 0.007 "sky": 15
} }
} }
} }
} }
] ]
} }
@@ -1,172 +1,284 @@
{ {
"parent": "block/block", "parent": "block/block",
"textures": { "ambientocclusion": false,
"particle": "appliedenergistics2:blocks/drive_side", "textures": {
"side": "appliedenergistics2:blocks/drive_side", "particle": "appliedenergistics2:blocks/drive_side",
"bottom": "appliedenergistics2:blocks/drive_bottom", "side": "appliedenergistics2:blocks/drive_side",
"top": "appliedenergistics2:blocks/drive_top", "bottom": "appliedenergistics2:blocks/drive_bottom",
"front": "appliedenergistics2:blocks/drive_front", "top": "appliedenergistics2:blocks/drive_top",
"inner": "appliedenergistics2:blocks/drive_bottom" "front": "appliedenergistics2:blocks/drive_front"
}, },
"elements": [ "elements": [
{ {
"name": "Right Side Panel", "name": "Right Side Panel",
"from": [ "from": [0, 1, 0],
0.0, "to": [2, 15, 16],
1.0, "faces": {
0.0 "north": {
], "uv": [15, 1, 16, 15],
"to": [ "texture": "#front",
2.0, "cullface": "north"
15.0, },
16.0 "east": {
], "uv": [0, 2, 16, 14],
"faces": { "rotation": 180,
"north": { "texture": "#bottom",
"texture": "#front" "cullface": "north"
}, },
"east": { "south": {
"texture": "#inner" "uv": [0, 1, 1, 15],
}, "texture": "#side",
"south": { "cullface": "south"
"texture": "#side" },
}, "west": {
"west": { "uv": [0, 1, 16, 15],
"texture": "#side" "texture": "#side",
} "cullface": "west"
} }
}, }
{ },
"name": "Left Side Panel", {
"from": [ "name": "Left Side Panel",
14.0, "from": [14, 1, 0],
1.0, "to": [16, 15, 16],
0.0 "faces": {
], "north": {
"to": [ "uv": [0, 1, 1, 15],
16.0, "texture": "#front",
15.0, "cullface": "north"
16.0 },
], "east": {
"faces": { "uv": [0, 1, 16, 15],
"north": { "texture": "#side",
"texture": "#front" "cullface": "east"
}, },
"east": { "south": {
"texture": "#side" "uv": [15, 1, 16, 15],
}, "texture": "#side",
"south": { "cullface": "south"
"texture": "#side" },
}, "west": {
"west": { "uv": [0, 2, 16, 14],
"texture": "#inner" "texture": "#bottom",
} "cullface": "north"
} }
}, }
{ },
"name": "Back Panel", {
"from": [ "name": "Back Panel",
2.0, "from": [2, 1, 7],
1.0, "to": [14, 15, 16],
8.0 "rotation": {
], "angle": 0,
"to": [ "axis": "y",
14.0, "origin": [8, 8, 9]
15.0, },
16.0 "faces": {
], "north": {
"faces": { "uv": [13, 2, 14, 13],
"north": { "texture": "#bottom"
"texture": "#inner" },
}, "south": {
"south": { "uv": [1, 1, 15, 15],
"texture": "#side" "texture": "#side",
} "cullface": "south"
} }
}, }
{ },
"name": "Bottom Panel", {
"from": [ "name": "Bottom Panel",
0.0, "from": [0, 0, 0],
0.0, "to": [16, 1, 16],
0.0 "faces": {
], "north": {
"to": [ "uv": [0, 15, 16, 16],
16.0, "texture": "#front",
1.0, "cullface": "north"
16.0 },
], "east": {
"faces": { "uv": [0, 15, 16, 16],
"north": { "texture": "#side",
"texture": "#front" "cullface": "east"
}, },
"east": { "south": {
"texture": "#side" "uv": [0, 15, 16, 16],
}, "texture": "#side",
"south": { "cullface": "south"
"texture": "#side" },
}, "west": {
"west": { "uv": [0, 15, 16, 16],
"texture": "#side" "texture": "#side",
}, "cullface": "west"
"up": { },
"texture": "#inner" "up": {
}, "uv": [0, 2, 16, 14],
"down": { "rotation": 90,
"texture": "#bottom" "texture": "#bottom",
} "cullface": "north"
} },
}, "down": {
{ "uv": [0, 0, 16, 16],
"name": "Top Panel", "texture": "#bottom",
"from": [ "cullface": "down"
0.0, }
15.0, }
0.0 },
], {
"to": [ "name": "Top Panel",
16.0, "from": [0, 15, 0],
16.0, "to": [16, 16, 16],
16.0 "faces": {
], "north": {
"faces": { "uv": [0, 0, 16, 1],
"north": { "texture": "#front",
"texture": "#front" "cullface": "north"
}, },
"east": { "east": {
"texture": "#side" "uv": [0, 0, 16, 1],
}, "texture": "#side",
"south": { "cullface": "east"
"texture": "#side" },
}, "south": {
"west": { "uv": [0, 0, 16, 1],
"texture": "#side" "texture": "#side",
}, "cullface": "south"
"up": { },
"texture": "#top" "west": {
}, "uv": [0, 0, 16, 1],
"down": { "texture": "#side",
"texture": "#inner" "cullface": "west"
} },
} "up": {
}, "uv": [0, 0, 16, 16],
{ "texture": "#top",
"name": "Front Panel", "cullface": "up"
"from": [ },
2.0, "down": {
1.0, "uv": [0, 2, 16, 14],
0.0 "rotation": 270,
], "texture": "#bottom",
"to": [ "cullface": "north"
14.0, }
15.0, }
8.0 },
], {
"faces": { "name": "Front Panel",
"north": { "from": [7, 1, 1],
"texture": "#front" "to": [9, 15, 7],
} "faces": {
} "north": {
} "uv": [7, 1, 9, 15],
] "texture": "#front",
"cullface": "north"
},
"east": {
"uv": [1, 2, 7, 14],
"rotation": 180,
"texture": "#bottom",
"cullface": "north"
},
"west": {
"uv": [1, 2, 7, 14],
"texture": "#bottom",
"cullface": "north"
}
}
},
{
"name": "Separator",
"from": [1, 3, 2],
"to": [15, 4, 7],
"faces": {
"north": {
"uv": [1, 12, 15, 13],
"texture": "#front",
"cullface": "north"
},
"up": {
"uv": [1, 2, 6, 14],
"rotation": 90,
"texture": "#bottom",
"cullface": "north"
},
"down": {
"uv": [1, 2, 6, 14],
"rotation": 270,
"texture": "#bottom",
"cullface": "north"
}
}
},
{
"name": "Separator",
"from": [1, 6, 2],
"to": [15, 7, 7],
"faces": {
"north": {
"uv": [1, 9, 15, 10],
"texture": "#front",
"cullface": "north"
},
"up": {
"uv": [1, 2, 6, 14],
"rotation": 90,
"texture": "#bottom",
"cullface": "north"
},
"down": {
"uv": [1, 2, 6, 14],
"rotation": 270,
"texture": "#bottom",
"cullface": "north"
}
}
},
{
"name": "Separator",
"from": [1, 9, 2],
"to": [15, 10, 7],
"faces": {
"north": {
"uv": [1, 6, 15, 7],
"texture": "#front",
"cullface": "north"
},
"up": {
"uv": [1, 2, 6, 14],
"rotation": 90,
"texture": "#bottom",
"cullface": "north"
},
"down": {
"uv": [1, 2, 6, 14],
"rotation": 270,
"texture": "#bottom",
"cullface": "north"
}
}
},
{
"name": "Separator",
"from": [1, 12, 2],
"to": [15, 13, 7],
"faces": {
"north": {
"uv": [1, 3, 15, 4],
"texture": "#front",
"cullface": "north"
},
"up": {
"uv": [1, 2, 6, 14],
"rotation": 90,
"texture": "#bottom",
"cullface": "north"
},
"down": {
"uv": [1, 2, 6, 14],
"rotation": 270,
"texture": "#bottom",
"cullface": "north"
}
}
}
]
} }
@@ -1,273 +1,284 @@
{ {
"parent": "block/block", "parent": "block/block",
"textures": { "ambientocclusion": false,
"side": "appliedenergistics2:blocks/drive_side", "textures": {
"bottom": "appliedenergistics2:blocks/drive_bottom", "particle": "appliedenergistics2:blocks/drive_side",
"top": "appliedenergistics2:blocks/drive_top", "side": "appliedenergistics2:blocks/drive_side",
"front": "appliedenergistics2:blocks/drive_front", "bottom": "appliedenergistics2:blocks/drive_bottom",
"inner": "appliedenergistics2:blocks/drive_bottom" "top": "appliedenergistics2:blocks/drive_top",
}, "front": "appliedenergistics2:blocks/drive_front"
"elements": [ },
{ "elements": [
"name": "Right Side Panel", {
"from": [ "name": "Right Side Panel",
0.0, "from": [0, 1, 0],
1.0, "to": [2, 15, 16],
0.0 "faces": {
], "north": {
"to": [ "uv": [15, 1, 16, 15],
2.0, "texture": "#front",
15.0, "cullface": "north"
16.0
],
"faces": {
"north": {
"texture": "#front"
},
"east": {
"texture": "#inner"
},
"south": {
"texture": "#side"
},
"west": {
"texture": "#side"
}
}
}, },
{ "east": {
"name": "Left Side Panel", "uv": [0, 2, 16, 14],
"from": [ "rotation": 180,
14.0, "texture": "#bottom",
1.0, "cullface": "north"
0.0
],
"to": [
16.0,
15.0,
16.0
],
"faces": {
"north": {
"texture": "#front"
},
"east": {
"texture": "#side"
},
"south": {
"texture": "#side"
},
"west": {
"texture": "#inner"
}
}
}, },
{ "south": {
"name": "Back Panel", "uv": [0, 1, 1, 15],
"from": [ "texture": "#side",
2.0, "cullface": "south"
1.0,
8.0
],
"to": [
14.0,
15.0,
16.0
],
"faces": {
"north": {
"texture": "#inner"
},
"south": {
"texture": "#side"
}
}
}, },
{ "west": {
"name": "Bottom Panel", "uv": [0, 1, 16, 15],
"from": [ "texture": "#side",
0.0, "cullface": "west"
0.0,
0.0
],
"to": [
16.0,
1.0,
16.0
],
"faces": {
"north": {
"texture": "#front"
},
"east": {
"texture": "#side"
},
"south": {
"texture": "#side"
},
"west": {
"texture": "#side"
},
"up": {
"texture": "#inner"
},
"down": {
"texture": "#bottom"
}
}
},
{
"name": "Top Panel",
"from": [
0.0,
15.0,
0.0
],
"to": [
16.0,
16.0,
16.0
],
"faces": {
"north": {
"texture": "#front"
},
"east": {
"texture": "#side"
},
"south": {
"texture": "#side"
},
"west": {
"texture": "#side"
},
"up": {
"texture": "#top"
},
"down": {
"texture": "#inner"
}
}
},
{
"name": "Middle Strut",
"from": [
7.0,
1.0,
0.0
],
"to": [
9.0,
15.0,
8.0
],
"faces": {
"north": {
"texture": "#front"
},
"east": {
"texture": "#inner"
},
"west": {
"texture": "#inner"
}
}
},
{
"name": "Separator",
"from": [
2.0,
3.0,
1.0
],
"to": [
14.0,
4.0,
8.0
],
"faces": {
"north": {
"texture": "#front"
},
"up": {
"texture": "#inner"
},
"down": {
"texture": "#inner"
}
}
},
{
"name": "Separator",
"from": [
2.0,
6.0,
1.0
],
"to": [
14.0,
7.0,
8.0
],
"faces": {
"north": {
"texture": "#front"
},
"up": {
"texture": "#inner"
},
"down": {
"texture": "#inner"
}
}
},
{
"name": "Separator",
"from": [
2.0,
9.0,
1.0
],
"to": [
14.0,
10.0,
8.0
],
"faces": {
"north": {
"texture": "#front"
},
"up": {
"texture": "#inner"
},
"down": {
"texture": "#inner"
}
}
},
{
"name": "Separator",
"from": [
2.0,
12.0,
1.0
],
"to": [
14.0,
13.0,
8.0
],
"faces": {
"north": {
"texture": "#front"
},
"up": {
"texture": "#inner"
},
"down": {
"texture": "#inner"
}
}
} }
] }
},
{
"name": "Left Side Panel",
"from": [14, 1, 0],
"to": [16, 15, 16],
"faces": {
"north": {
"uv": [0, 1, 1, 15],
"texture": "#front",
"cullface": "north"
},
"east": {
"uv": [0, 1, 16, 15],
"texture": "#side",
"cullface": "east"
},
"south": {
"uv": [15, 1, 16, 15],
"texture": "#side",
"cullface": "south"
},
"west": {
"uv": [0, 2, 16, 14],
"texture": "#bottom",
"cullface": "north"
}
}
},
{
"name": "Back Panel",
"from": [2, 1, 7],
"to": [14, 15, 16],
"rotation": {
"angle": 0,
"axis": "y",
"origin": [8, 8, 9]
},
"faces": {
"north": {
"uv": [13, 2, 14, 13],
"texture": "#bottom"
},
"south": {
"uv": [1, 1, 15, 15],
"texture": "#side",
"cullface": "south"
}
}
},
{
"name": "Bottom Panel",
"from": [0, 0, 0],
"to": [16, 1, 16],
"faces": {
"north": {
"uv": [0, 15, 16, 16],
"texture": "#front",
"cullface": "north"
},
"east": {
"uv": [0, 15, 16, 16],
"texture": "#side",
"cullface": "east"
},
"south": {
"uv": [0, 15, 16, 16],
"texture": "#side",
"cullface": "south"
},
"west": {
"uv": [0, 15, 16, 16],
"texture": "#side",
"cullface": "west"
},
"up": {
"uv": [0, 2, 16, 14],
"rotation": 90,
"texture": "#bottom",
"cullface": "north"
},
"down": {
"uv": [0, 0, 16, 16],
"texture": "#bottom",
"cullface": "down"
}
}
},
{
"name": "Top Panel",
"from": [0, 15, 0],
"to": [16, 16, 16],
"faces": {
"north": {
"uv": [0, 0, 16, 1],
"texture": "#front",
"cullface": "north"
},
"east": {
"uv": [0, 0, 16, 1],
"texture": "#side",
"cullface": "east"
},
"south": {
"uv": [0, 0, 16, 1],
"texture": "#side",
"cullface": "south"
},
"west": {
"uv": [0, 0, 16, 1],
"texture": "#side",
"cullface": "west"
},
"up": {
"uv": [0, 0, 16, 16],
"texture": "#top",
"cullface": "up"
},
"down": {
"uv": [0, 2, 16, 14],
"rotation": 270,
"texture": "#bottom",
"cullface": "north"
}
}
},
{
"name": "Front Panel",
"from": [7, 1, 1],
"to": [9, 15, 7],
"faces": {
"north": {
"uv": [7, 1, 9, 15],
"texture": "#front",
"cullface": "north"
},
"east": {
"uv": [1, 2, 7, 14],
"rotation": 180,
"texture": "#bottom",
"cullface": "north"
},
"west": {
"uv": [1, 2, 7, 14],
"texture": "#bottom",
"cullface": "north"
}
}
},
{
"name": "Separator",
"from": [1, 3, 2],
"to": [15, 4, 7],
"faces": {
"north": {
"uv": [1, 12, 15, 13],
"texture": "#front",
"cullface": "north"
},
"up": {
"uv": [1, 2, 6, 14],
"rotation": 90,
"texture": "#bottom",
"cullface": "north"
},
"down": {
"uv": [1, 2, 6, 14],
"rotation": 270,
"texture": "#bottom",
"cullface": "north"
}
}
},
{
"name": "Separator",
"from": [1, 6, 2],
"to": [15, 7, 7],
"faces": {
"north": {
"uv": [1, 9, 15, 10],
"texture": "#front",
"cullface": "north"
},
"up": {
"uv": [1, 2, 6, 14],
"rotation": 90,
"texture": "#bottom",
"cullface": "north"
},
"down": {
"uv": [1, 2, 6, 14],
"rotation": 270,
"texture": "#bottom",
"cullface": "north"
}
}
},
{
"name": "Separator",
"from": [1, 9, 2],
"to": [15, 10, 7],
"faces": {
"north": {
"uv": [1, 6, 15, 7],
"texture": "#front",
"cullface": "north"
},
"up": {
"uv": [1, 2, 6, 14],
"rotation": 90,
"texture": "#bottom",
"cullface": "north"
},
"down": {
"uv": [1, 2, 6, 14],
"rotation": 270,
"texture": "#bottom",
"cullface": "north"
}
}
},
{
"name": "Separator",
"from": [1, 12, 2],
"to": [15, 13, 7],
"faces": {
"north": {
"uv": [1, 3, 15, 4],
"texture": "#front",
"cullface": "north"
},
"up": {
"uv": [1, 2, 6, 14],
"rotation": 90,
"texture": "#bottom",
"cullface": "north"
},
"down": {
"uv": [1, 2, 6, 14],
"rotation": 270,
"texture": "#bottom",
"cullface": "north"
}
}
}
]
} }
@@ -1,32 +1,4 @@
{ {
"ae2_uvl_marker": true, "textures": {},
"textures": { "elements": []
"front": "appliedenergistics2:blocks/drive_cell_states"
},
"elements": [
{
"name": "Cell Backdrop",
"from": [
9.0,
13.0,
0.0
],
"to": [
14.0,
15.0,
1.0
],
"faces": {
"north": {
"texture": "#front",
"uv": [
0,
10,
5,
12
]
}
}
}
]
} }
@@ -1,60 +1,29 @@
{ {
"ae2_uvl_marker": true, "textures": {
"textures": { "front": "appliedenergistics2:blocks/drive_cell_states",
"front": "appliedenergistics2:blocks/drive_cell_states" "top_front": "appliedenergistics2:blocks/drive_cell_states_emissive"
}, },
"elements": [ "elements": [
{ {
"name": "Cell Backdrop", "name": "Cell Backdrop",
"from": [ "from": [9, 13, 1],
9.0, "to": [14, 15, 2],
13.0, "shade": false,
0.0 "faces": {
], "north": {"uv": [0, 8, 5, 10], "texture": "#front"},
"to": [ "up": {"uv": [0, 8, 5, 9], "texture": "#front"},
14.0, "down": {"uv": [5, 10, 0, 9], "texture": "#front"}
15.0, }
1.0 },
], {
"faces": { "name": "Cell Light",
"north": { "from": [9, 13, 1],
"texture": "#front", "to": [14, 15, 2],
"uv": [ "shade": false,
0, "faces": {
8, "north": {"uv": [0, 6, 5, 8], "texture": "#top_front"},
5, "down": {"uv": [5, 8, 0, 7], "texture": "#top_front"}
10 }
] }
} ]
} }
},
{
"name": "Cell Light",
"from": [
9.0,
13.0,
0.0
],
"to": [
14.0,
15.0,
1.0
],
"faces": {
"north": {
"texture": "#front",
"uv": [
0,
6,
5,
8
],
"uvlightmap": {
"sky": 0.007,
"block": 0.007
}
}
}
}
]
}
@@ -1,31 +1,18 @@
{ {
"textures": { "ambientocclusion": false,
"front": "appliedenergistics2:blocks/drive_cell_states" "textures": {
}, "front": "appliedenergistics2:blocks/drive_cell_states"
"elements": [ },
{ "elements": [
"name": "Cell", {
"from": [ "name": "Cell Backdrop",
9.0, "from": [9, 13, 1],
13.0, "to": [14, 15, 2],
0.0 "faces": {
], "north": {"uv": [0, 0, 5, 2], "texture": "#front"},
"to": [ "up": {"uv": [0, 0, 5, 1], "texture": "#front"},
14.0, "down": {"uv": [5, 2, 0, 1], "texture": "#front"}
15.0, }
1.0 }
], ]
"faces": { }
"north": {
"texture": "#front",
"uv": [
0,
0,
5,
2
]
}
}
}
]
}
@@ -1,60 +1,29 @@
{ {
"ae2_uvl_marker": true, "textures": {
"textures": { "front": "appliedenergistics2:blocks/drive_cell_states",
"front": "appliedenergistics2:blocks/drive_cell_states" "top_front": "appliedenergistics2:blocks/drive_cell_states_emissive"
}, },
"elements": [ "elements": [
{ {
"name": "Cell Backdrop", "name": "Cell Backdrop",
"from": [ "from": [9, 13, 1],
9.0, "to": [14, 15, 2],
13.0, "shade": false,
0.0 "faces": {
], "north": {"uv": [0, 8, 5, 10], "texture": "#front"},
"to": [ "up": {"uv": [0, 8, 5, 9], "texture": "#front"},
14.0, "down": {"uv": [5, 10, 0, 9], "texture": "#front"}
15.0, }
1.0 },
], {
"faces": { "name": "Cell Light",
"north": { "from": [9, 13, 1],
"texture": "#front", "to": [14, 15, 2],
"uv": [ "shade": false,
0, "faces": {
8, "north": {"uv": [0, 2, 5, 4], "texture": "#top_front"},
5, "down": {"uv": [5, 4, 0, 3], "texture": "#top_front"}
10 }
] }
} ]
} }
},
{
"name": "Cell Light",
"from": [
9.0,
13.0,
0.0
],
"to": [
14.0,
15.0,
1.0
],
"faces": {
"north": {
"texture": "#front",
"uv": [
0,
2,
5,
4
],
"uvlightmap": {
"sky": 0.007,
"block": 0.007
}
}
}
}
]
}
@@ -1,60 +1,29 @@
{ {
"ae2_uvl_marker": true, "textures": {
"textures": { "front": "appliedenergistics2:blocks/drive_cell_states",
"front": "appliedenergistics2:blocks/drive_cell_states" "top_front": "appliedenergistics2:blocks/drive_cell_states_emissive"
}, },
"elements": [ "elements": [
{ {
"name": "Cell Backdrop", "name": "Cell Backdrop",
"from": [ "from": [9, 13, 1],
9.0, "to": [14, 15, 2],
13.0, "shade": false,
0.0 "faces": {
], "north": {"uv": [0, 8, 5, 10], "texture": "#front"},
"to": [ "up": {"uv": [0, 8, 5, 9], "texture": "#front"},
14.0, "down": {"uv": [5, 10, 0, 9], "texture": "#front"}
15.0, }
1.0 },
], {
"faces": { "name": "Cell Light",
"north": { "from": [9, 13, 1],
"texture": "#front", "to": [14, 15, 2],
"uv": [ "shade": false,
0, "faces": {
8, "north": {"uv": [0, 4, 5, 6], "texture": "#top_front"},
5, "down": {"uv": [5, 6, 0, 5], "texture": "#top_front"}
10 }
] }
} ]
} }
},
{
"name": "Cell Light",
"from": [
9.0,
13.0,
0.0
],
"to": [
14.0,
15.0,
1.0
],
"faces": {
"north": {
"texture": "#front",
"uv": [
0,
4,
5,
6
],
"uvlightmap": {
"sky": 0.007,
"block": 0.007
}
}
}
}
]
}
@@ -2,6 +2,7 @@
"animation": { "animation": {
"frametime": 3, "frametime": 3,
"frames": [ "frames": [
0,
1, 1,
2, 2,
3, 3,
@@ -12,8 +13,7 @@
8, 8,
9, 9,
10, 10,
11, 11
0
] ]
} }
} }
Binary file not shown.

Before

Width:  |  Height:  |  Size: 341 B

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 405 B

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 402 B

After

Width:  |  Height:  |  Size: 286 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 401 B

After

Width:  |  Height:  |  Size: 300 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 403 B

After

Width:  |  Height:  |  Size: 296 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 405 B

After

Width:  |  Height:  |  Size: 296 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 403 B

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 404 B

After

Width:  |  Height:  |  Size: 295 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 405 B

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 404 B

After

Width:  |  Height:  |  Size: 305 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 B

@@ -0,0 +1,10 @@
{
"ctm": {
"ctm_version": 1,
"layer": "BLOOM",
"gregtech": true,
"extra": {
"light": 15
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 382 B

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 350 B

After

Width:  |  Height:  |  Size: 250 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 353 B

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 351 B

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 382 B

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 381 B

After

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 382 B

After

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 385 B

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 384 B

After

Width:  |  Height:  |  Size: 267 B