Compare commits
28 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c3b1dea7c5 | |||
| 40ec517480 | |||
| 2fdc16d3a8 | |||
| 053485a95a | |||
| e910af7734 | |||
| 59d7bd6c16 | |||
| 1a11462ddd | |||
| 77d615559f | |||
| 6878bfa4b0 | |||
| f1d50eca1a | |||
| 4ee32dd0b0 | |||
| 66e589324a | |||
| 362b001cb4 | |||
| b6fd4b3c0f | |||
| e364603a5a | |||
| c58bebc346 | |||
| 97f11f0c61 | |||
| 5c2fa72f95 | |||
| ebd8501301 | |||
| fa07247bd7 | |||
| 95d25ddf47 | |||
| 7a45e1faf4 | |||
| 1f88494832 | |||
| c629b4e0cf | |||
| 65ca607134 | |||
| 898c07ca01 | |||
| 883c267aa8 | |||
| 22cf913708 |
@@ -85,7 +85,8 @@ configurations {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
deobfCompile "com.jaquadro.minecraft.storagedrawers:StorageDrawers:1.12.2-5.4.2:api"
|
compileOnly "com.jaquadro.minecraft.storagedrawers:StorageDrawers:1.12.2-5.4.2:api"
|
||||||
|
compileOnly "gregtechce:gregtech:1.12.2:1.12.0.662"
|
||||||
|
|
||||||
// installable runtime dependencies
|
// installable runtime dependencies
|
||||||
mods "mcp.mobius.waila:Hwyla:${hwyla_version}"
|
mods "mcp.mobius.waila:Hwyla:${hwyla_version}"
|
||||||
|
|||||||
@@ -26,5 +26,20 @@ package appeng.api.config;
|
|||||||
|
|
||||||
public enum ActionItems
|
public enum ActionItems
|
||||||
{
|
{
|
||||||
WRENCH, CLOSE, STASH, ENCODE, SUBSTITUTION, MULTIPLY_BY_TWO, MULTIPLY_BY_THREE, INCREASE_BY_ONE, DIVIDE_BY_TWO, DIVIDE_BY_THREE, DECREASE_BY_ONE, MAX_COUNT
|
WRENCH,
|
||||||
|
CLOSE,
|
||||||
|
STASH,
|
||||||
|
ENCODE,
|
||||||
|
SUBSTITUTION,
|
||||||
|
MULTIPLY_BY_TWO,
|
||||||
|
MULTIPLY_BY_THREE,
|
||||||
|
INCREASE_BY_ONE,
|
||||||
|
DIVIDE_BY_TWO,
|
||||||
|
DIVIDE_BY_THREE,
|
||||||
|
DECREASE_BY_ONE,
|
||||||
|
MAX_COUNT,
|
||||||
|
FREE_MOLECULAR_SLOT_SHORTCUT,
|
||||||
|
TOGGLE_SHOW_FULL_INTERFACES_ON,
|
||||||
|
TOGGLE_SHOW_FULL_INTERFACES_OFF,
|
||||||
|
HIGHLIGHT_INTERFACE
|
||||||
}
|
}
|
||||||
@@ -31,11 +31,13 @@ import java.util.List;
|
|||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
|
import appeng.tile.inventory.AppEngInternalInventory;
|
||||||
import com.google.common.base.Joiner;
|
import com.google.common.base.Joiner;
|
||||||
import com.google.common.base.Stopwatch;
|
import com.google.common.base.Stopwatch;
|
||||||
import com.google.common.collect.Lists;
|
import com.google.common.collect.Lists;
|
||||||
|
|
||||||
import net.minecraftforge.fml.common.Optional;
|
import net.minecraftforge.fml.common.Optional;
|
||||||
|
import net.minecraftforge.items.IItemHandler;
|
||||||
import org.lwjgl.input.Keyboard;
|
import org.lwjgl.input.Keyboard;
|
||||||
import org.lwjgl.input.Mouse;
|
import org.lwjgl.input.Mouse;
|
||||||
import org.lwjgl.opengl.GL11;
|
import org.lwjgl.opengl.GL11;
|
||||||
@@ -378,6 +380,59 @@ public abstract class AEBaseGui extends GuiContainer implements IMTModGuiContain
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if( slot instanceof SlotDisconnected )
|
||||||
|
{
|
||||||
|
this.drag_click.add( slot );
|
||||||
|
if( this.drag_click.size() > 1 )
|
||||||
|
{
|
||||||
|
if( !itemstack.isEmpty() )
|
||||||
|
{
|
||||||
|
Set<IItemHandler> visitedInterfaces = new HashSet<>();
|
||||||
|
for( final Slot dr : this.drag_click )
|
||||||
|
{
|
||||||
|
IItemHandler interfaceHandler = ( (SlotDisconnected) slot ).getSlot().getInventory();
|
||||||
|
if (visitedInterfaces.contains( interfaceHandler )) break;
|
||||||
|
visitedInterfaces.add( interfaceHandler );
|
||||||
|
boolean canInsert = true;
|
||||||
|
for( int s = 0; s < interfaceHandler.getSlots(); s++ )
|
||||||
|
{
|
||||||
|
if( ItemStack.areItemStacksEqual( interfaceHandler.getStackInSlot( s ), itemstack ) )
|
||||||
|
{
|
||||||
|
canInsert = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if( canInsert )
|
||||||
|
{
|
||||||
|
if( slot.getStack().isEmpty() )
|
||||||
|
{
|
||||||
|
InventoryAction action = InventoryAction.SPLIT_OR_PLACE_SINGLE;
|
||||||
|
final PacketInventoryAction p = new PacketInventoryAction( action, dr.getSlotIndex(), ( (SlotDisconnected) slot ).getSlot().getId() );
|
||||||
|
NetworkHandler.instance().sendToServer( p );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
else if( isShiftKeyDown() )
|
||||||
|
{
|
||||||
|
for( final Slot dr : this.drag_click )
|
||||||
|
{
|
||||||
|
InventoryAction action = null;
|
||||||
|
if( !slot.getStack().isEmpty() )
|
||||||
|
{
|
||||||
|
action = InventoryAction.SHIFT_CLICK;
|
||||||
|
}
|
||||||
|
if( action != null )
|
||||||
|
{
|
||||||
|
final PacketInventoryAction p = new PacketInventoryAction( action, dr.getSlotIndex(), ( (SlotDisconnected) slot ).getSlot().getId() );
|
||||||
|
NetworkHandler.instance().sendToServer( p );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
super.mouseClickMove( x, y, c, d );
|
super.mouseClickMove( x, y, c, d );
|
||||||
@@ -471,12 +526,35 @@ public abstract class AEBaseGui extends GuiContainer implements IMTModGuiContain
|
|||||||
|
|
||||||
if( slot instanceof SlotDisconnected )
|
if( slot instanceof SlotDisconnected )
|
||||||
{
|
{
|
||||||
|
if( this.drag_click.size() > 1 )
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
InventoryAction action = null;
|
InventoryAction action = null;
|
||||||
|
|
||||||
switch( clickType )
|
switch ( clickType )
|
||||||
{
|
{
|
||||||
case PICKUP: // pickup / set-down.
|
case PICKUP: // pickup / set-down.
|
||||||
action = ( mouseButton == 1 ) ? InventoryAction.SPLIT_OR_PLACE_SINGLE : InventoryAction.PICKUP_OR_SET_DOWN;
|
if( slot.getStack().isEmpty() && !player.inventory.getItemStack().isEmpty() )
|
||||||
|
{
|
||||||
|
boolean canInsert = true;
|
||||||
|
IItemHandler interfaceHandler = ( (SlotDisconnected) slot ).getSlot().getInventory();
|
||||||
|
for( int s = 0; s < interfaceHandler.getSlots(); s++ )
|
||||||
|
{
|
||||||
|
if( ItemStack.areItemStacksEqual( interfaceHandler.getStackInSlot( s ), player.inventory.getItemStack() ) )
|
||||||
|
{
|
||||||
|
canInsert = false;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if( canInsert )
|
||||||
|
{
|
||||||
|
action = InventoryAction.SPLIT_OR_PLACE_SINGLE;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if( !slot.getStack().isEmpty() && player.inventory.getItemStack().getCount() <= 1 ) action = InventoryAction.PICKUP_OR_SET_DOWN;
|
||||||
break;
|
break;
|
||||||
case QUICK_MOVE:
|
case QUICK_MOVE:
|
||||||
action = ( mouseButton == 1 ) ? InventoryAction.PICKUP_SINGLE : InventoryAction.SHIFT_CLICK;
|
action = ( mouseButton == 1 ) ? InventoryAction.PICKUP_SINGLE : InventoryAction.SHIFT_CLICK;
|
||||||
|
|||||||
@@ -22,17 +22,15 @@ package appeng.client.gui.implementations;
|
|||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
|
||||||
import akka.event.Logging;
|
import appeng.api.config.ActionItems;
|
||||||
import appeng.client.render.BlockPosHighlighter;
|
import appeng.api.config.Settings;
|
||||||
|
import appeng.client.gui.widgets.GuiImgButton;
|
||||||
import appeng.util.BlockPosUtils;
|
import appeng.util.BlockPosUtils;
|
||||||
import com.google.common.collect.HashMultimap;
|
import com.google.common.collect.HashMultimap;
|
||||||
|
|
||||||
import net.minecraft.client.Minecraft;
|
|
||||||
import net.minecraft.client.gui.GuiButton;
|
import net.minecraft.client.gui.GuiButton;
|
||||||
import net.minecraft.client.renderer.GlStateManager;
|
import net.minecraft.client.renderer.GlStateManager;
|
||||||
import net.minecraft.entity.player.EntityPlayerMP;
|
|
||||||
import net.minecraft.entity.player.InventoryPlayer;
|
import net.minecraft.entity.player.InventoryPlayer;
|
||||||
import net.minecraft.inventory.Slot;
|
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
import net.minecraft.nbt.NBTTagList;
|
import net.minecraft.nbt.NBTTagList;
|
||||||
@@ -50,10 +48,8 @@ import appeng.parts.reporting.PartInterfaceTerminal;
|
|||||||
import appeng.util.Platform;
|
import appeng.util.Platform;
|
||||||
import net.minecraft.nbt.NBTUtil;
|
import net.minecraft.nbt.NBTUtil;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.util.text.ITextComponent;
|
|
||||||
import net.minecraft.util.text.TextComponentString;
|
import net.minecraft.util.text.TextComponentString;
|
||||||
import org.lwjgl.util.Color;
|
|
||||||
import org.lwjgl.util.ReadableColor;
|
|
||||||
|
|
||||||
import static appeng.client.render.BlockPosHighlighter.hilightBlock;
|
import static appeng.client.render.BlockPosHighlighter.hilightBlock;
|
||||||
|
|
||||||
@@ -64,7 +60,7 @@ public class GuiInterfaceTerminal extends AEBaseGui
|
|||||||
private static final int LINES_ON_PAGE = 6;
|
private static final int LINES_ON_PAGE = 6;
|
||||||
|
|
||||||
// TODO: copied from GuiMEMonitorable. It looks not changed, maybe unneeded?
|
// TODO: copied from GuiMEMonitorable. It looks not changed, maybe unneeded?
|
||||||
private final int offsetX = 9;
|
private final int offsetX = 21;
|
||||||
|
|
||||||
private final HashMap<Long, ClientDCInternalInv> byId = new HashMap<>();
|
private final HashMap<Long, ClientDCInternalInv> byId = new HashMap<>();
|
||||||
private final HashMultimap<String, ClientDCInternalInv> byName = HashMultimap.create();
|
private final HashMultimap<String, ClientDCInternalInv> byName = HashMultimap.create();
|
||||||
@@ -78,16 +74,19 @@ public class GuiInterfaceTerminal extends AEBaseGui
|
|||||||
private boolean refreshList = false;
|
private boolean refreshList = false;
|
||||||
private MEGuiTextField searchFieldOutputs;
|
private MEGuiTextField searchFieldOutputs;
|
||||||
private MEGuiTextField searchFieldInputs;
|
private MEGuiTextField searchFieldInputs;
|
||||||
|
private PartInterfaceTerminal partInterfaceTerminal;
|
||||||
|
private GuiButton guiButtonHide;
|
||||||
|
private GuiButton guiButtonNextAssembler;
|
||||||
|
|
||||||
public GuiInterfaceTerminal( final InventoryPlayer inventoryPlayer, final PartInterfaceTerminal te )
|
public GuiInterfaceTerminal( final InventoryPlayer inventoryPlayer, final PartInterfaceTerminal te )
|
||||||
{
|
{
|
||||||
super( new ContainerInterfaceTerminal( inventoryPlayer, te ) );
|
super( new ContainerInterfaceTerminal( inventoryPlayer, te ) );
|
||||||
|
|
||||||
|
this.partInterfaceTerminal = te;
|
||||||
final GuiScrollbar scrollbar = new GuiScrollbar();
|
final GuiScrollbar scrollbar = new GuiScrollbar();
|
||||||
this.setScrollBar( scrollbar );
|
this.setScrollBar( scrollbar );
|
||||||
this.xSize = 195;
|
this.xSize = 208;
|
||||||
this.ySize = 236;
|
this.ySize = 256;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -95,25 +94,41 @@ public class GuiInterfaceTerminal extends AEBaseGui
|
|||||||
{
|
{
|
||||||
super.initGui();
|
super.initGui();
|
||||||
|
|
||||||
this.getScrollBar().setLeft( 175 );
|
this.getScrollBar().setLeft( 189 );
|
||||||
this.getScrollBar().setHeight( 106 );
|
this.getScrollBar().setHeight( 106 );
|
||||||
this.getScrollBar().setTop( 32 );
|
this.getScrollBar().setTop( 51 );
|
||||||
|
|
||||||
this.searchFieldInputs = new MEGuiTextField( this.fontRenderer, this.guiLeft + Math.max( 16, this.offsetX ), this.guiTop + 18, 65, 12 );
|
this.searchFieldInputs = new MEGuiTextField( this.fontRenderer, this.guiLeft + Math.max( 32, this.offsetX ), this.guiTop + 25, 65, 12 );
|
||||||
this.searchFieldInputs.setEnableBackgroundDrawing( false );
|
this.searchFieldInputs.setEnableBackgroundDrawing( false );
|
||||||
this.searchFieldInputs.setMaxStringLength( 25 );
|
this.searchFieldInputs.setMaxStringLength( 25 );
|
||||||
this.searchFieldInputs.setTextColor( 0xFFFFFF );
|
this.searchFieldInputs.setTextColor( 0xFFFFFF );
|
||||||
this.searchFieldInputs.setVisible( true );
|
this.searchFieldInputs.setVisible( true );
|
||||||
this.searchFieldInputs.setFocused( false );
|
this.searchFieldInputs.setFocused( false );
|
||||||
|
|
||||||
// this.searchFieldOutputs = new MEGuiTextField( this.fontRenderer, this.guiLeft + Math.max( 104, this.offsetX ), this.guiTop + 4, 65, 12 );
|
this.searchFieldOutputs = new MEGuiTextField( this.fontRenderer, this.guiLeft + Math.max( 32, this.offsetX ), this.guiTop + 38, 65, 12 );
|
||||||
this.searchFieldOutputs = new MEGuiTextField( this.fontRenderer, this.guiLeft + Math.max( 94, this.offsetX ), this.guiTop + 18, 65, 12 );
|
|
||||||
this.searchFieldOutputs.setEnableBackgroundDrawing( false );
|
this.searchFieldOutputs.setEnableBackgroundDrawing( false );
|
||||||
this.searchFieldOutputs.setMaxStringLength( 25 );
|
this.searchFieldOutputs.setMaxStringLength( 25 );
|
||||||
this.searchFieldOutputs.setTextColor( 0xFFFFFF );
|
this.searchFieldOutputs.setTextColor( 0xFFFFFF );
|
||||||
this.searchFieldOutputs.setVisible( true );
|
this.searchFieldOutputs.setVisible( true );
|
||||||
this.searchFieldOutputs.setFocused( true );
|
this.searchFieldOutputs.setFocused( true );
|
||||||
|
|
||||||
|
this.searchFieldInputs.setText( partInterfaceTerminal.in );
|
||||||
|
this.searchFieldOutputs.setText( partInterfaceTerminal.out );
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void onGuiClosed()
|
||||||
|
{
|
||||||
|
partInterfaceTerminal.saveSearchStrings( this.searchFieldInputs.getText().toLowerCase(), this.searchFieldOutputs.getText().toLowerCase() );
|
||||||
|
super.onGuiClosed();
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected boolean isPointInRegion( int rectX, int rectY, int rectWidth, int rectHeight, int pointX, int pointY )
|
||||||
|
{
|
||||||
|
if( searchFieldInputs.isMouseIn( pointX, pointY ) ) drawTooltip( pointX - guiLeft - offsetX, pointY - guiTop , "Inputs OR names" );
|
||||||
|
else if( searchFieldOutputs.isMouseIn( pointX, pointY ) ) drawTooltip( pointX - guiLeft - offsetX, pointY - guiTop, "Outputs OR names" );
|
||||||
|
return super.isPointInRegion( rectX, rectY, rectWidth, rectHeight, pointX, pointY );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -122,20 +137,21 @@ public class GuiInterfaceTerminal extends AEBaseGui
|
|||||||
this.buttonList.clear();
|
this.buttonList.clear();
|
||||||
|
|
||||||
this.fontRenderer.drawString( this.getGuiDisplayName( GuiText.InterfaceTerminal.getLocal() ), 8, 6, 4210752 );
|
this.fontRenderer.drawString( this.getGuiDisplayName( GuiText.InterfaceTerminal.getLocal() ), 8, 6, 4210752 );
|
||||||
this.fontRenderer.drawString( GuiText.inventory.getLocal(), 8, this.ySize - 96 + 3, 4210752 );
|
this.fontRenderer.drawString( GuiText.inventory.getLocal(), this.offsetX + 2, this.ySize - 96 + 3, 4210752 );
|
||||||
|
|
||||||
final int ex = this.getScrollBar().getCurrentScroll();
|
final int ex = this.getScrollBar().getCurrentScroll();
|
||||||
|
|
||||||
final Iterator<Slot> o = this.inventorySlots.inventorySlots.iterator();
|
this.guiButtonNextAssembler = new GuiImgButton(guiLeft + 123, guiTop + 25,Settings.ACTIONS, ActionItems.FREE_MOLECULAR_SLOT_SHORTCUT);
|
||||||
while( o.hasNext() )
|
this.buttonList.add( guiButtonNextAssembler );
|
||||||
{
|
|
||||||
if( o.next() instanceof SlotDisconnected )
|
|
||||||
{
|
|
||||||
o.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
int offset = 32;
|
guiButtonHide = new GuiImgButton( guiLeft + 141, guiTop + 25,Settings.ACTIONS, this.partInterfaceTerminal.onlyInterfacesWithFreeSlots ?
|
||||||
|
ActionItems.TOGGLE_SHOW_FULL_INTERFACES_OFF :
|
||||||
|
ActionItems.TOGGLE_SHOW_FULL_INTERFACES_ON);
|
||||||
|
this.buttonList.add( guiButtonHide );
|
||||||
|
|
||||||
|
this.inventorySlots.inventorySlots.removeIf( slot -> slot instanceof SlotDisconnected );
|
||||||
|
|
||||||
|
int offset = 51;
|
||||||
for( int x = 0; x < LINES_ON_PAGE && ex + x < this.lines.size(); x++ )
|
for( int x = 0; x < LINES_ON_PAGE && ex + x < this.lines.size(); x++ )
|
||||||
{
|
{
|
||||||
final Object lineObj = this.lines.get( ex + x );
|
final Object lineObj = this.lines.get( ex + x );
|
||||||
@@ -144,9 +160,10 @@ public class GuiInterfaceTerminal extends AEBaseGui
|
|||||||
final ClientDCInternalInv inv = (ClientDCInternalInv) lineObj;
|
final ClientDCInternalInv inv = (ClientDCInternalInv) lineObj;
|
||||||
for( int z = 0; z < inv.getInventory().getSlots(); z++ )
|
for( int z = 0; z < inv.getInventory().getSlots(); z++ )
|
||||||
{
|
{
|
||||||
this.inventorySlots.inventorySlots.add( new SlotDisconnected( inv, z, z * 18 + 8, 1 + offset ) );
|
this.inventorySlots.inventorySlots.add( new SlotDisconnected( inv, z, z * 18 + 22, 1 + offset ) );
|
||||||
}
|
}
|
||||||
GuiButton guiButton = new GuiButton( x, guiLeft + 1, guiTop + offset + 3, 8, 10, "?" );
|
|
||||||
|
GuiButton guiButton = new GuiImgButton(guiLeft + 4, guiTop + offset + 1, Settings.ACTIONS, ActionItems.HIGHLIGHT_INTERFACE);
|
||||||
guiButtonHashMap.put( guiButton , inv);
|
guiButtonHashMap.put( guiButton , inv);
|
||||||
this.buttonList.add( guiButton );
|
this.buttonList.add( guiButton );
|
||||||
|
|
||||||
@@ -165,7 +182,7 @@ public class GuiInterfaceTerminal extends AEBaseGui
|
|||||||
name = name.substring( 0, name.length() - 1 );
|
name = name.substring( 0, name.length() - 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
this.fontRenderer.drawString( name, 10, 6 + offset, 4210752 );
|
this.fontRenderer.drawString( name, this.offsetX + 2, 6 + offset, 4210752 );
|
||||||
}
|
}
|
||||||
offset += 18;
|
offset += 18;
|
||||||
}
|
}
|
||||||
@@ -201,9 +218,30 @@ public class GuiInterfaceTerminal extends AEBaseGui
|
|||||||
BlockPos blockPos = blockPosHashMap.get( guiButtonHashMap.get( this.selectedButton ) );
|
BlockPos blockPos = blockPosHashMap.get( guiButtonHashMap.get( this.selectedButton ) );
|
||||||
BlockPos blockPos2 = mc.player.getPosition();
|
BlockPos blockPos2 = mc.player.getPosition();
|
||||||
hilightBlock( blockPos, System.currentTimeMillis() + 500 * BlockPosUtils.getDistance(blockPos, blockPos2) );
|
hilightBlock( blockPos, System.currentTimeMillis() + 500 * BlockPosUtils.getDistance(blockPos, blockPos2) );
|
||||||
mc.player.sendStatusMessage( new TextComponentString( "The interface is now highlighted at " + "X: " + blockPos.getX() + "Y: " + blockPos.getY() + "Z: " + blockPos.getZ() ), false );
|
mc.player.sendStatusMessage( new TextComponentString( "The interface is now highlighted at " + "X: " + blockPos.getX() + " Y: " + blockPos.getY() + " Z: " + blockPos.getZ() ), false );
|
||||||
mc.player.closeScreen();
|
mc.player.closeScreen();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (btn == guiButtonHide)
|
||||||
|
{
|
||||||
|
partInterfaceTerminal.onlyInterfacesWithFreeSlots = !partInterfaceTerminal.onlyInterfacesWithFreeSlots;
|
||||||
|
this.refreshList();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (btn == guiButtonNextAssembler)
|
||||||
|
{
|
||||||
|
// Set Search to "Molecular Assembler" and set "Only Free Interface"
|
||||||
|
boolean currentOnlyInterfacesWithFreeSlots = this.partInterfaceTerminal.onlyInterfacesWithFreeSlots;
|
||||||
|
String currentSearchText = this.searchFieldOutputs.getText();
|
||||||
|
|
||||||
|
this.partInterfaceTerminal.onlyInterfacesWithFreeSlots = true;
|
||||||
|
this.searchFieldOutputs.setText("Molecular Assembler");
|
||||||
|
|
||||||
|
this.refreshList();
|
||||||
|
|
||||||
|
this.partInterfaceTerminal.onlyInterfacesWithFreeSlots = currentOnlyInterfacesWithFreeSlots;
|
||||||
|
this.searchFieldOutputs.setText(currentSearchText);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -212,7 +250,7 @@ public class GuiInterfaceTerminal extends AEBaseGui
|
|||||||
this.bindTexture( "guis/newinterfaceterminal.png" );
|
this.bindTexture( "guis/newinterfaceterminal.png" );
|
||||||
this.drawTexturedModalRect( offsetX, offsetY, 0, 0, this.xSize, this.ySize );
|
this.drawTexturedModalRect( offsetX, offsetY, 0, 0, this.xSize, this.ySize );
|
||||||
|
|
||||||
int offset = 32;
|
int offset = 51;
|
||||||
final int ex = this.getScrollBar().getCurrentScroll();
|
final int ex = this.getScrollBar().getCurrentScroll();
|
||||||
|
|
||||||
for( int x = 0; x < LINES_ON_PAGE && ex + x < this.lines.size(); x++ )
|
for( int x = 0; x < LINES_ON_PAGE && ex + x < this.lines.size(); x++ )
|
||||||
@@ -224,7 +262,7 @@ public class GuiInterfaceTerminal extends AEBaseGui
|
|||||||
|
|
||||||
GlStateManager.color( 1, 1, 1, 1 );
|
GlStateManager.color( 1, 1, 1, 1 );
|
||||||
final int width = inv.getInventory().getSlots() * 18;
|
final int width = inv.getInventory().getSlots() * 18;
|
||||||
this.drawTexturedModalRect( offsetX + 7, offsetY + offset, 7, 153, width, 18 );
|
this.drawTexturedModalRect( offsetX + 20, offsetY + offset, 20, 173, width, 18 );
|
||||||
}
|
}
|
||||||
offset += 18;
|
offset += 18;
|
||||||
}
|
}
|
||||||
@@ -324,19 +362,20 @@ public class GuiInterfaceTerminal extends AEBaseGui
|
|||||||
final String searchFieldInputs = this.searchFieldInputs.getText().toLowerCase();
|
final String searchFieldInputs = this.searchFieldInputs.getText().toLowerCase();
|
||||||
final String searchFieldOutputs = this.searchFieldOutputs.getText().toLowerCase();
|
final String searchFieldOutputs = this.searchFieldOutputs.getText().toLowerCase();
|
||||||
|
|
||||||
final Set<Object> cachedSearch = this.getCacheForSearchTerm( "IN:" + searchFieldInputs + " OUT:" + searchFieldOutputs );
|
final Set<Object> cachedSearch = this.getCacheForSearchTerm( "IN:" + searchFieldInputs + " OUT:" + searchFieldOutputs + partInterfaceTerminal.onlyInterfacesWithFreeSlots);
|
||||||
final boolean rebuild = cachedSearch.isEmpty();
|
final boolean rebuild = cachedSearch.isEmpty();
|
||||||
|
|
||||||
for( final ClientDCInternalInv entry : this.byId.values() )
|
for( final ClientDCInternalInv entry : this.byId.values() )
|
||||||
{
|
{
|
||||||
// ignore inventory if not doing a full rebuild or cache already marks it as miss.
|
// ignore inventory if not doing a full rebuild and cache already marks it as miss.
|
||||||
if( !rebuild && !cachedSearch.contains( entry ) )
|
if( !rebuild && !cachedSearch.contains( entry ) )
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Shortcut to skip any filter if search term is ""/empty
|
// Shortcut to skip any filter if search term is ""/empty
|
||||||
boolean found = (searchFieldInputs.isEmpty() && searchFieldOutputs.isEmpty());
|
|
||||||
|
boolean found = (searchFieldInputs.isEmpty() && searchFieldOutputs.isEmpty() && !partInterfaceTerminal.onlyInterfacesWithFreeSlots);
|
||||||
|
|
||||||
// Search if the current inventory holds a pattern containing the search term.
|
// Search if the current inventory holds a pattern containing the search term.
|
||||||
if( !found )
|
if( !found )
|
||||||
@@ -354,13 +393,32 @@ public class GuiInterfaceTerminal extends AEBaseGui
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// If only Interfaces with empty slots should be shown, check that here
|
||||||
|
boolean interfaceHasFreeSlots = false;
|
||||||
|
if (partInterfaceTerminal.onlyInterfacesWithFreeSlots) {
|
||||||
|
for( final ItemStack itemStack : entry.getInventory() )
|
||||||
|
{
|
||||||
|
if(itemStack.isEmpty()){
|
||||||
|
interfaceHasFreeSlots = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if found, filter skipped or machine name matching the search term, add it
|
// if found, filter skipped or machine name matching the search term, add it
|
||||||
if( found || (entry.getName().toLowerCase().contains( searchFieldInputs ) && entry.getName().toLowerCase().contains( searchFieldOutputs )))
|
if( found || (entry.getName().toLowerCase().contains( searchFieldInputs ) && entry.getName().toLowerCase().contains( searchFieldOutputs )))
|
||||||
{
|
{
|
||||||
this.byName.put( entry.getName(), entry );
|
if (!partInterfaceTerminal.onlyInterfacesWithFreeSlots)
|
||||||
cachedSearch.add( entry );
|
{
|
||||||
|
this.byName.put( entry.getName(), entry );
|
||||||
|
cachedSearch.add( entry );
|
||||||
|
}
|
||||||
|
else if ( interfaceHasFreeSlots ){
|
||||||
|
this.byName.put( entry.getName(), entry );
|
||||||
|
cachedSearch.add( entry );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -142,6 +142,11 @@ public class GuiImgButton extends GuiButton implements ITooltip
|
|||||||
this.registerApp( 11 + 4 * 16, Settings.ACTIONS, ActionItems.DECREASE_BY_ONE, ButtonToolTips.DecreaseByOne, ButtonToolTips.DecreaseByOneDesc );
|
this.registerApp( 11 + 4 * 16, Settings.ACTIONS, ActionItems.DECREASE_BY_ONE, ButtonToolTips.DecreaseByOne, ButtonToolTips.DecreaseByOneDesc );
|
||||||
this.registerApp( 12 + 4 * 16, Settings.ACTIONS, ActionItems.MAX_COUNT, ButtonToolTips.MaxCount, ButtonToolTips.MaxCountDesc );
|
this.registerApp( 12 + 4 * 16, Settings.ACTIONS, ActionItems.MAX_COUNT, ButtonToolTips.MaxCount, ButtonToolTips.MaxCountDesc );
|
||||||
|
|
||||||
|
this.registerApp( 6 + 5 * 16, Settings.ACTIONS, ActionItems.FREE_MOLECULAR_SLOT_SHORTCUT, ButtonToolTips.FreeMolecularSlotShortcut, ButtonToolTips.FreeMolecularSlotShortcutDesc );
|
||||||
|
this.registerApp( 7 + 5 * 16, Settings.ACTIONS, ActionItems.TOGGLE_SHOW_FULL_INTERFACES_ON, ButtonToolTips.ToggleShowFullInterfaces, ButtonToolTips.ToggleShowFullInterfacesOnDesc );
|
||||||
|
this.registerApp( 8 + 5 * 16, Settings.ACTIONS, ActionItems.TOGGLE_SHOW_FULL_INTERFACES_OFF, ButtonToolTips.ToggleShowFullInterfaces, ButtonToolTips.ToggleShowFullInterfacesOffDesc );
|
||||||
|
this.registerApp( 6 + 6 * 16, Settings.ACTIONS, ActionItems.HIGHLIGHT_INTERFACE, ButtonToolTips.HighlightInterface, "" );
|
||||||
|
|
||||||
this.registerApp( 8, Settings.ACTIONS, ActionItems.ENCODE, ButtonToolTips.Encode, ButtonToolTips.EncodeDescription );
|
this.registerApp( 8, Settings.ACTIONS, ActionItems.ENCODE, ButtonToolTips.Encode, ButtonToolTips.EncodeDescription );
|
||||||
this.registerApp( 4 + 3 * 16, Settings.ACTIONS, ItemSubstitution.ENABLED, ButtonToolTips.Substitutions, ButtonToolTips.SubstitutionsDescEnabled );
|
this.registerApp( 4 + 3 * 16, Settings.ACTIONS, ItemSubstitution.ENABLED, ButtonToolTips.Substitutions, ButtonToolTips.SubstitutionsDescEnabled );
|
||||||
this.registerApp( 7 + 3 * 16, Settings.ACTIONS, ItemSubstitution.DISABLED, ButtonToolTips.Substitutions, ButtonToolTips.SubstitutionsDescDisabled );
|
this.registerApp( 7 + 3 * 16, Settings.ACTIONS, ItemSubstitution.DISABLED, ButtonToolTips.Substitutions, ButtonToolTips.SubstitutionsDescDisabled );
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ public class ClientDCInternalInv implements Comparable<ClientDCInternalInv>
|
|||||||
|
|
||||||
public ClientDCInternalInv( final int size, final long id, final long sortBy, final String unlocalizedName )
|
public ClientDCInternalInv( final int size, final long id, final long sortBy, final String unlocalizedName )
|
||||||
{
|
{
|
||||||
this.inventory = new AppEngInternalInventory( null, size );
|
this.inventory = new AppEngInternalInventory( null, size, 1 );
|
||||||
this.unlocalizedName = unlocalizedName;
|
this.unlocalizedName = unlocalizedName;
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.sortBy = sortBy;
|
this.sortBy = sortBy;
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ public final class ContainerInterfaceTerminal extends AEBaseContainer
|
|||||||
this.grid = anchor.getActionableNode().getGrid();
|
this.grid = anchor.getActionableNode().getGrid();
|
||||||
}
|
}
|
||||||
|
|
||||||
this.bindPlayerInventory( ip, 0, 236 - /* height of player inventory */82 );
|
this.bindPlayerInventory( ip, 14, 256 - /* height of player inventory */82 );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -258,7 +258,7 @@ public final class ContainerInterfaceTerminal extends AEBaseContainer
|
|||||||
if( hasItemInHand )
|
if( hasItemInHand )
|
||||||
{
|
{
|
||||||
ItemStack extra = playerHand.removeItems( 1, ItemStack.EMPTY, null );
|
ItemStack extra = playerHand.removeItems( 1, ItemStack.EMPTY, null );
|
||||||
if( !extra.isEmpty() )
|
if( !extra.isEmpty() && !interfaceSlot.containsItems())
|
||||||
{
|
{
|
||||||
extra = interfaceSlot.addItems( extra );
|
extra = interfaceSlot.addItems( extra );
|
||||||
}
|
}
|
||||||
@@ -419,7 +419,7 @@ public final class ContainerInterfaceTerminal extends AEBaseContainer
|
|||||||
this.client = new AppEngInternalInventory( null, this.server.getSlots() );
|
this.client = new AppEngInternalInventory( null, this.server.getSlots() );
|
||||||
this.unlocalizedName = unlocalizedName;
|
this.unlocalizedName = unlocalizedName;
|
||||||
this.sortBy = dual.getSortValue();
|
this.sortBy = dual.getSortValue();
|
||||||
this.pos = dual.getTile().getPos();
|
this.pos = dual.getLocation().getPos();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -291,7 +291,7 @@ public class ContainerPatternTerm extends ContainerMEMonitorable implements IAEA
|
|||||||
for( int x = 0; x < this.craftingSlots.length; x++ )
|
for( int x = 0; x < this.craftingSlots.length; x++ )
|
||||||
{
|
{
|
||||||
input[x] = this.craftingSlots[x].getStack();
|
input[x] = this.craftingSlots[x].getStack();
|
||||||
if( !input[x].isEmpty() && input[x].getCount() * multiple > 64 )
|
if( !input[x].isEmpty() && input[x].getCount() * multiple > input[x].getMaxStackSize() )
|
||||||
{
|
{
|
||||||
canMultiplyInputs = false;
|
canMultiplyInputs = false;
|
||||||
}
|
}
|
||||||
@@ -299,7 +299,7 @@ public class ContainerPatternTerm extends ContainerMEMonitorable implements IAEA
|
|||||||
for( final OptionalSlotFake outputSlot : this.outputSlots )
|
for( final OptionalSlotFake outputSlot : this.outputSlots )
|
||||||
{
|
{
|
||||||
final ItemStack out = outputSlot.getStack();
|
final ItemStack out = outputSlot.getStack();
|
||||||
if( !out.isEmpty() && out.getCount() * multiple > 64 )
|
if( !out.isEmpty() && out.getCount() * multiple > out.getMaxStackSize() )
|
||||||
{
|
{
|
||||||
canMultiplyOutputs = false;
|
canMultiplyOutputs = false;
|
||||||
}
|
}
|
||||||
@@ -369,7 +369,7 @@ public class ContainerPatternTerm extends ContainerMEMonitorable implements IAEA
|
|||||||
for( int x = 0; x < this.craftingSlots.length; x++ )
|
for( int x = 0; x < this.craftingSlots.length; x++ )
|
||||||
{
|
{
|
||||||
input[x] = this.craftingSlots[x].getStack();
|
input[x] = this.craftingSlots[x].getStack();
|
||||||
if( !input[x].isEmpty() && input[x].getCount() + increase > 64 )
|
if( !input[x].isEmpty() && input[x].getCount() + increase > input[x].getMaxStackSize() )
|
||||||
{
|
{
|
||||||
canIncreaseInputs = false;
|
canIncreaseInputs = false;
|
||||||
}
|
}
|
||||||
@@ -377,7 +377,7 @@ public class ContainerPatternTerm extends ContainerMEMonitorable implements IAEA
|
|||||||
for( final OptionalSlotFake outputSlot : this.outputSlots )
|
for( final OptionalSlotFake outputSlot : this.outputSlots )
|
||||||
{
|
{
|
||||||
final ItemStack out = outputSlot.getStack();
|
final ItemStack out = outputSlot.getStack();
|
||||||
if( !out.isEmpty() && out.getCount() + increase > 64 )
|
if( !out.isEmpty() && out.getCount() + increase > out.getMaxStackSize() )
|
||||||
{
|
{
|
||||||
canIncreaseOutputs = false;
|
canIncreaseOutputs = false;
|
||||||
}
|
}
|
||||||
@@ -450,11 +450,11 @@ public class ContainerPatternTerm extends ContainerMEMonitorable implements IAEA
|
|||||||
for( int x = 0; x < this.craftingSlots.length; x++ )
|
for( int x = 0; x < this.craftingSlots.length; x++ )
|
||||||
{
|
{
|
||||||
input[x] = this.craftingSlots[x].getStack();
|
input[x] = this.craftingSlots[x].getStack();
|
||||||
if( !input[x].isEmpty() && 64 - input[x].getCount() > maxInputStackGrowth )
|
if( !input[x].isEmpty() && input[x].getMaxStackSize() - input[x].getCount() > maxInputStackGrowth )
|
||||||
{
|
{
|
||||||
maxInputStackGrowth = 64 - input[x].getCount();
|
maxInputStackGrowth = input[x].getMaxStackSize() - input[x].getCount();
|
||||||
}
|
}
|
||||||
if( !input[x].isEmpty() && input[x].getCount() + maxInputStackGrowth > 64 )
|
if( !input[x].isEmpty() && input[x].getCount() + maxInputStackGrowth > input[x].getMaxStackSize() )
|
||||||
{
|
{
|
||||||
canGrowInputs = false;
|
canGrowInputs = false;
|
||||||
}
|
}
|
||||||
@@ -463,9 +463,9 @@ public class ContainerPatternTerm extends ContainerMEMonitorable implements IAEA
|
|||||||
{
|
{
|
||||||
final ItemStack out = outputSlot.getStack();
|
final ItemStack out = outputSlot.getStack();
|
||||||
{
|
{
|
||||||
maxOutputStackGrowth = 64 - out.getCount();
|
maxOutputStackGrowth = out.getMaxStackSize() - out.getCount();
|
||||||
}
|
}
|
||||||
if( !out.isEmpty() && out.getCount() + maxOutputStackGrowth > 64 )
|
if( !out.isEmpty() && out.getCount() + maxOutputStackGrowth > out.getMaxStackSize() )
|
||||||
{
|
{
|
||||||
canGrowOutputs = false;
|
canGrowOutputs = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -616,7 +616,12 @@ public final class ApiBlocks implements IBlocks
|
|||||||
|
|
||||||
private static IBlockDefinition makeStairs( String registryName, FeatureFactory registry, IBlockDefinition block )
|
private static IBlockDefinition makeStairs( String registryName, FeatureFactory registry, IBlockDefinition block )
|
||||||
{
|
{
|
||||||
return registry.block( registryName, () -> new BlockStairCommon( block.maybeBlock().get(), block.identifier() ) )
|
if( !block.maybeBlock().isPresent() )
|
||||||
|
{
|
||||||
|
return new BlockDefinition( registryName, null, null );
|
||||||
|
}
|
||||||
|
|
||||||
|
IBlockDefinition stairs = registry.block( registryName, () -> new BlockStairCommon( block.maybeBlock().get(), block.identifier() ) )
|
||||||
.features( AEFeature.DECORATIVE_BLOCKS )
|
.features( AEFeature.DECORATIVE_BLOCKS )
|
||||||
.rendering( new BlockRenderingCustomizer()
|
.rendering( new BlockRenderingCustomizer()
|
||||||
{
|
{
|
||||||
@@ -629,6 +634,10 @@ public final class ApiBlocks implements IBlocks
|
|||||||
}
|
}
|
||||||
} )
|
} )
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
Verify.verify(stairs.maybeBlock().isPresent());
|
||||||
|
|
||||||
|
return stairs;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
package appeng.core.localization;
|
package appeng.core.localization;
|
||||||
|
|
||||||
|
|
||||||
|
import appeng.api.config.SchedulingMode;
|
||||||
import net.minecraft.util.text.translation.I18n;
|
import net.minecraft.util.text.translation.I18n;
|
||||||
|
|
||||||
|
|
||||||
@@ -151,6 +152,13 @@ public enum ButtonToolTips
|
|||||||
DecreaseByOneDesc,
|
DecreaseByOneDesc,
|
||||||
MaxCount,
|
MaxCount,
|
||||||
MaxCountDesc,
|
MaxCountDesc,
|
||||||
|
FreeMolecularSlotShortcut,
|
||||||
|
FreeMolecularSlotShortcutDesc,
|
||||||
|
ToggleShowFullInterfaces,
|
||||||
|
ToggleShowFullInterfacesOnDesc,
|
||||||
|
ToggleShowFullInterfacesOffDesc,
|
||||||
|
HighlightInterface,
|
||||||
|
HighlightInterfaceDesc,
|
||||||
|
|
||||||
// Used in the tooltips of the items in the terminal, when moused over
|
// Used in the tooltips of the items in the terminal, when moused over
|
||||||
ItemsStored,
|
ItemsStored,
|
||||||
|
|||||||
@@ -171,6 +171,11 @@ public class PacketJEIRecipe extends AppEngPacket
|
|||||||
// already the correct item?
|
// already the correct item?
|
||||||
ItemStack newItem = this.canUseInSlot( x, currentItem );
|
ItemStack newItem = this.canUseInSlot( x, currentItem );
|
||||||
|
|
||||||
|
if ( !cct.useRealItems() && this.recipe[x] != null ) {
|
||||||
|
if (this.recipe[x].length > 0 )
|
||||||
|
currentItem.setCount( recipe[x][0].getCount() );
|
||||||
|
}
|
||||||
|
|
||||||
// put away old item
|
// put away old item
|
||||||
if( newItem != currentItem && security.hasPermission( player, SecurityPermissions.INJECT ) )
|
if( newItem != currentItem && security.hasPermission( player, SecurityPermissions.INJECT ) )
|
||||||
{
|
{
|
||||||
@@ -210,7 +215,7 @@ public class PacketJEIRecipe extends AppEngPacket
|
|||||||
IAEItemStack mostDamaged = null;
|
IAEItemStack mostDamaged = null;
|
||||||
for( IAEItemStack is : outList )
|
for( IAEItemStack is : outList )
|
||||||
{
|
{
|
||||||
if( !is.isCraftable() )
|
if( !is.isCraftable() && is.getItem().isDamageable() )
|
||||||
{
|
{
|
||||||
if( mostDamaged == null || mostDamaged.getItemDamage() < is.getItemDamage() )
|
if( mostDamaged == null || mostDamaged.getItemDamage() < is.getItemDamage() )
|
||||||
{
|
{
|
||||||
@@ -237,22 +242,6 @@ public class PacketJEIRecipe extends AppEngPacket
|
|||||||
// Fall back using an existing item
|
// Fall back using an existing item
|
||||||
out = storage.extractItems( request, Actionable.SIMULATE, cct.getActionSource() );
|
out = storage.extractItems( request, Actionable.SIMULATE, cct.getActionSource() );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( out == null )
|
|
||||||
{
|
|
||||||
IItemList<IAEItemStack> items = AEApi.instance().storage().getStorageChannel( IItemStorageChannel.class ).createList();
|
|
||||||
Iterator<IAEItemStack> iterator = inv.getInventory( AEApi.instance().storage().getStorageChannel( IItemStorageChannel.class ) ).getAvailableItems( items ).iterator();
|
|
||||||
while ( iterator.hasNext() )
|
|
||||||
{
|
|
||||||
final IAEItemStack o = iterator.next();
|
|
||||||
if( o.getDefinition().isItemEqual( request.getDefinition() ) && o.isCraftable() )
|
|
||||||
{
|
|
||||||
out = o;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
iterator.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if( out != null )
|
if( out != null )
|
||||||
@@ -274,14 +263,17 @@ public class PacketJEIRecipe extends AppEngPacket
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
currentItem = ad.simulateSimilarRemove(recipe[x][y].getCount(), this.recipe[x][y],FuzzyMode.IGNORE_ALL, null );
|
currentItem = ad.simulateSimilarRemove(recipe[x][y].getCount(), this.recipe[x][y],FuzzyMode.IGNORE_ALL, null );
|
||||||
if( currentItem.isEmpty() )
|
|
||||||
{
|
|
||||||
currentItem = this.recipe[x][y].copy();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!cct.useRealItems())
|
||||||
|
{
|
||||||
|
if( currentItem.isEmpty() && this.recipe[x] != null )
|
||||||
|
{
|
||||||
|
currentItem = this.recipe[x][0].copy();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
ItemHandlerUtil.setStackInSlot( craftMatrix, x, currentItem );
|
ItemHandlerUtil.setStackInSlot( craftMatrix, x, currentItem );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,7 +26,9 @@ import java.util.Iterator;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import net.minecraft.item.ItemStack;
|
import appeng.api.config.Settings;
|
||||||
|
import appeng.api.config.StorageFilter;
|
||||||
|
import appeng.parts.misc.PartStorageBus;
|
||||||
import net.minecraftforge.fluids.FluidStack;
|
import net.minecraftforge.fluids.FluidStack;
|
||||||
import net.minecraftforge.fluids.capability.IFluidHandler;
|
import net.minecraftforge.fluids.capability.IFluidHandler;
|
||||||
import net.minecraftforge.fluids.capability.IFluidTankProperties;
|
import net.minecraftforge.fluids.capability.IFluidTankProperties;
|
||||||
@@ -62,12 +64,18 @@ public class FluidHandlerAdapter implements IMEInventory<IAEFluidStack>, IBaseMo
|
|||||||
private final IFluidHandler fluidHandler;
|
private final IFluidHandler fluidHandler;
|
||||||
private final IGridProxyable proxyable;
|
private final IGridProxyable proxyable;
|
||||||
private final FluidHandlerAdapter.InventoryCache cache;
|
private final FluidHandlerAdapter.InventoryCache cache;
|
||||||
|
private StorageFilter mode;
|
||||||
|
|
||||||
FluidHandlerAdapter( IFluidHandler fluidHandler, IGridProxyable proxy )
|
FluidHandlerAdapter( IFluidHandler fluidHandler, IGridProxyable proxy )
|
||||||
{
|
{
|
||||||
this.fluidHandler = fluidHandler;
|
this.fluidHandler = fluidHandler;
|
||||||
this.proxyable = proxy;
|
this.proxyable = proxy;
|
||||||
this.cache = new FluidHandlerAdapter.InventoryCache( this.fluidHandler );
|
if( this.proxyable instanceof PartStorageBus )
|
||||||
|
{
|
||||||
|
PartStorageBus partStorageBus = (PartStorageBus) this.proxyable;
|
||||||
|
this.mode = ( (StorageFilter) partStorageBus.getConfigManager().getSetting( Settings.STORAGE_FILTER ) );
|
||||||
|
}
|
||||||
|
this.cache = new FluidHandlerAdapter.InventoryCache( this.fluidHandler, this.mode);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -196,13 +204,12 @@ public class FluidHandlerAdapter implements IMEInventory<IAEFluidStack>, IBaseMo
|
|||||||
{
|
{
|
||||||
private IAEFluidStack[] cachedAeStacks = new IAEFluidStack[0];
|
private IAEFluidStack[] cachedAeStacks = new IAEFluidStack[0];
|
||||||
private final IFluidHandler fluidHandler;
|
private final IFluidHandler fluidHandler;
|
||||||
private ArrayList<Integer> skipSlots;
|
private final StorageFilter mode;
|
||||||
|
|
||||||
|
public InventoryCache( IFluidHandler fluidHandler, StorageFilter mode )
|
||||||
public InventoryCache( IFluidHandler fluidHandler )
|
|
||||||
{
|
{
|
||||||
|
this.mode = mode;
|
||||||
this.fluidHandler = fluidHandler;
|
this.fluidHandler = fluidHandler;
|
||||||
this.skipSlots = new ArrayList<>(this.fluidHandler.getTankProperties().length);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<IAEFluidStack> update()
|
public List<IAEFluidStack> update()
|
||||||
@@ -215,23 +222,20 @@ public class FluidHandlerAdapter implements IMEInventory<IAEFluidStack>, IBaseMo
|
|||||||
if( slots > this.cachedAeStacks.length )
|
if( slots > this.cachedAeStacks.length )
|
||||||
{
|
{
|
||||||
this.cachedAeStacks = Arrays.copyOf( this.cachedAeStacks, slots );
|
this.cachedAeStacks = Arrays.copyOf( this.cachedAeStacks, slots );
|
||||||
this.skipSlots = new ArrayList<>(this.fluidHandler.getTankProperties().length);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for( int slot = 0; slot < slots; slot++ )
|
for( int slot = 0; slot < slots; slot++ )
|
||||||
{
|
{
|
||||||
if (skipSlots.contains( slot ))
|
|
||||||
continue;
|
|
||||||
// Save the old stuff
|
// Save the old stuff
|
||||||
final IAEFluidStack oldAEFS = this.cachedAeStacks[slot];
|
final IAEFluidStack oldAEFS = this.cachedAeStacks[slot];
|
||||||
FluidStack newFS = tankProperties[slot].getContents();
|
FluidStack newFS = tankProperties[slot].getContents();
|
||||||
if (newFS != null) {
|
if( this.mode == StorageFilter.EXTRACTABLE_ONLY && newFS != null )
|
||||||
if (this.fluidHandler.drain( 1, false ) == null){
|
{
|
||||||
|
if( this.fluidHandler.drain( 1, false ) == null )
|
||||||
|
{
|
||||||
newFS = null;
|
newFS = null;
|
||||||
skipSlots.add( slot );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.handlePossibleSlotChanges( slot, oldAEFS, newFS, changes );
|
this.handlePossibleSlotChanges( slot, oldAEFS, newFS, changes );
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -251,7 +255,6 @@ public class FluidHandlerAdapter implements IMEInventory<IAEFluidStack>, IBaseMo
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.cachedAeStacks = Arrays.copyOf( this.cachedAeStacks, slots );
|
this.cachedAeStacks = Arrays.copyOf( this.cachedAeStacks, slots );
|
||||||
this.skipSlots = new ArrayList<>( this.fluidHandler.getTankProperties().length );
|
|
||||||
}
|
}
|
||||||
return changes;
|
return changes;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,6 +33,8 @@ import appeng.integration.modules.gregtech.GTCEInventoryAdaptor;
|
|||||||
import appeng.util.*;
|
import appeng.util.*;
|
||||||
import com.google.common.collect.ImmutableSet;
|
import com.google.common.collect.ImmutableSet;
|
||||||
|
|
||||||
|
import gregtech.api.block.machines.BlockMachine;
|
||||||
|
import gregtech.api.metatileentity.MetaTileEntity;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.state.IBlockState;
|
import net.minecraft.block.state.IBlockState;
|
||||||
import net.minecraft.init.Items;
|
import net.minecraft.init.Items;
|
||||||
@@ -48,6 +50,7 @@ import net.minecraft.util.math.RayTraceResult;
|
|||||||
import net.minecraft.util.math.Vec3d;
|
import net.minecraft.util.math.Vec3d;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
import net.minecraftforge.common.capabilities.Capability;
|
import net.minecraftforge.common.capabilities.Capability;
|
||||||
|
import net.minecraftforge.fml.common.Loader;
|
||||||
import net.minecraftforge.items.CapabilityItemHandler;
|
import net.minecraftforge.items.CapabilityItemHandler;
|
||||||
import net.minecraftforge.items.IItemHandler;
|
import net.minecraftforge.items.IItemHandler;
|
||||||
import net.minecraftforge.items.wrapper.RangedWrapper;
|
import net.minecraftforge.items.wrapper.RangedWrapper;
|
||||||
@@ -109,6 +112,8 @@ import appeng.util.inv.IInventoryDestination;
|
|||||||
import appeng.util.inv.InvOperation;
|
import appeng.util.inv.InvOperation;
|
||||||
import appeng.util.item.AEItemStack;
|
import appeng.util.item.AEItemStack;
|
||||||
|
|
||||||
|
import static gregtech.api.block.machines.BlockMachine.getMetaTileEntity;
|
||||||
|
|
||||||
|
|
||||||
public class DualityInterface implements IGridTickable, IStorageMonitorable, IInventoryDestination, IAEAppEngInventory, IConfigManagerHost, ICraftingProvider, IUpgradeableHost
|
public class DualityInterface implements IGridTickable, IStorageMonitorable, IInventoryDestination, IAEAppEngInventory, IConfigManagerHost, ICraftingProvider, IUpgradeableHost
|
||||||
{
|
{
|
||||||
@@ -1235,6 +1240,13 @@ public class DualityInterface implements IGridTickable, IStorageMonitorable, IIn
|
|||||||
final IBlockState directedBlockState = hostWorld.getBlockState( targ );
|
final IBlockState directedBlockState = hostWorld.getBlockState( targ );
|
||||||
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 )
|
||||||
|
{
|
||||||
|
MetaTileEntity metaTileEntity = getMetaTileEntity(hostWorld, targ);
|
||||||
|
return metaTileEntity.getMetaFullName();
|
||||||
|
}
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Vec3d from = new Vec3d( hostTile.getPos().getX() + 0.5, hostTile.getPos().getY() + 0.5, hostTile.getPos().getZ() + 0.5 );
|
Vec3d from = new Vec3d( hostTile.getPos().getX() + 0.5, hostTile.getPos().getY() + 0.5, hostTile.getPos().getZ() + 0.5 );
|
||||||
|
|||||||
+6
-4
@@ -19,9 +19,9 @@
|
|||||||
package appeng.me.cache;
|
package appeng.me.cache;
|
||||||
|
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.*;
|
||||||
import java.util.PriorityQueue;
|
|
||||||
|
|
||||||
|
import appeng.parts.automation.PartLevelEmitter;
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
|
|
||||||
import net.minecraft.crash.CrashReport;
|
import net.minecraft.crash.CrashReport;
|
||||||
@@ -46,6 +46,7 @@ public class TickManagerCache implements ITickManager
|
|||||||
private final HashMap<IGridNode, TickTracker> alertable = new HashMap<>();
|
private final HashMap<IGridNode, TickTracker> alertable = new HashMap<>();
|
||||||
private final HashMap<IGridNode, TickTracker> sleeping = new HashMap<>();
|
private final HashMap<IGridNode, TickTracker> sleeping = new HashMap<>();
|
||||||
private final HashMap<IGridNode, TickTracker> awake = new HashMap<>();
|
private final HashMap<IGridNode, TickTracker> awake = new HashMap<>();
|
||||||
|
private final HashMap<IGridNode, TickTracker> laterTicker = new HashMap<>();
|
||||||
private final PriorityQueue<TickTracker> upcomingTicks = new PriorityQueue<>();
|
private final PriorityQueue<TickTracker> upcomingTicks = new PriorityQueue<>();
|
||||||
|
|
||||||
private long currentTick = 0;
|
private long currentTick = 0;
|
||||||
@@ -86,7 +87,7 @@ public class TickManagerCache implements ITickManager
|
|||||||
{
|
{
|
||||||
this.currentTick++;
|
this.currentTick++;
|
||||||
|
|
||||||
while( !this.upcomingTicks.isEmpty() )
|
while ( !this.upcomingTicks.isEmpty() )
|
||||||
{
|
{
|
||||||
tt = this.upcomingTicks.peek();
|
tt = this.upcomingTicks.peek();
|
||||||
|
|
||||||
@@ -101,7 +102,7 @@ public class TickManagerCache implements ITickManager
|
|||||||
final int diff = (int) ( this.currentTick - tt.getLastTick() );
|
final int diff = (int) ( this.currentTick - tt.getLastTick() );
|
||||||
final TickRateModulation mod = tt.getGridTickable().tickingRequest( tt.getNode(), diff );
|
final TickRateModulation mod = tt.getGridTickable().tickingRequest( tt.getNode(), diff );
|
||||||
|
|
||||||
switch( mod )
|
switch ( mod )
|
||||||
{
|
{
|
||||||
case FASTER:
|
case FASTER:
|
||||||
tt.setCurrentRate( tt.getCurrentRate() - 2 );
|
tt.setCurrentRate( tt.getCurrentRate() - 2 );
|
||||||
@@ -137,6 +138,7 @@ public class TickManagerCache implements ITickManager
|
|||||||
tt.addEntityCrashInfo( crashreportcategory );
|
tt.addEntityCrashInfo( crashreportcategory );
|
||||||
throw new ReportedException( crashreport );
|
throw new ReportedException( crashreport );
|
||||||
}
|
}
|
||||||
|
PartLevelEmitter.wipeCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void addToQueue( final TickTracker tt )
|
private void addToQueue( final TickTracker tt )
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
package appeng.me.storage;
|
package appeng.me.storage;
|
||||||
|
|
||||||
|
|
||||||
|
import appeng.api.config.StorageFilter;
|
||||||
import appeng.api.networking.security.IActionSource;
|
import appeng.api.networking.security.IActionSource;
|
||||||
import appeng.api.networking.ticking.TickRateModulation;
|
import appeng.api.networking.ticking.TickRateModulation;
|
||||||
|
|
||||||
@@ -30,4 +31,8 @@ public interface ITickingMonitor
|
|||||||
|
|
||||||
void setActionSource( IActionSource actionSource );
|
void setActionSource( IActionSource actionSource );
|
||||||
|
|
||||||
|
default void setMode( StorageFilter setting )
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,9 +19,14 @@
|
|||||||
package appeng.parts.automation;
|
package appeng.parts.automation;
|
||||||
|
|
||||||
|
|
||||||
import java.util.Collection;
|
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
import appeng.me.Grid;
|
||||||
|
import appeng.me.GridNode;
|
||||||
|
import appeng.util.item.AEItemStack;
|
||||||
|
import it.unimi.dsi.fastutil.objects.Object2LongMap;
|
||||||
|
import it.unimi.dsi.fastutil.objects.Object2LongOpenHashMap;
|
||||||
|
import it.unimi.dsi.fastutil.objects.Object2ObjectOpenHashMap;
|
||||||
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.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
@@ -118,6 +123,9 @@ public class PartLevelEmitter extends PartUpgradeable implements IEnergyWatcherH
|
|||||||
private double centerX;
|
private double centerX;
|
||||||
private double centerY;
|
private double centerY;
|
||||||
private double centerZ;
|
private double centerZ;
|
||||||
|
static Object2LongMap<Grid> gridItemCount = new Object2LongOpenHashMap<>();
|
||||||
|
static Object2ObjectOpenHashMap<Grid, Object2LongMap<AEItemStack>> fuzzyAEItemStackCount = new Object2ObjectOpenHashMap<>();
|
||||||
|
static Object2ObjectOpenHashMap<Grid, Object2LongMap<AEItemStack>> preciseAEItemStackCount = new Object2ObjectOpenHashMap<>();
|
||||||
|
|
||||||
@Reflected
|
@Reflected
|
||||||
public PartLevelEmitter( final ItemStack is )
|
public PartLevelEmitter( final ItemStack is )
|
||||||
@@ -315,40 +323,91 @@ public class PartLevelEmitter extends PartUpgradeable implements IEnergyWatcherH
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void updateReportingValue( final IMEMonitor<IAEItemStack> monitor )
|
private void updateReportingValue( final IMEMonitor<IAEItemStack> monitor )
|
||||||
|
{
|
||||||
|
updateReportingValue( monitor,null );
|
||||||
|
}
|
||||||
|
|
||||||
|
private void updateReportingValue( final IMEMonitor<IAEItemStack> monitor, Iterable<IAEItemStack> change )
|
||||||
{
|
{
|
||||||
final IAEItemStack myStack = this.config.getAEStackInSlot( 0 );
|
final IAEItemStack myStack = this.config.getAEStackInSlot( 0 );
|
||||||
|
|
||||||
if( myStack == null )
|
GridNode node = (GridNode) (this.getGridNode());
|
||||||
|
|
||||||
|
if( node != null )
|
||||||
{
|
{
|
||||||
this.lastReportedValue = 0;
|
|
||||||
for( final IAEItemStack st : monitor.getStorageList() )
|
final Grid g = node.getInternalGrid();
|
||||||
|
|
||||||
|
if( myStack == null )
|
||||||
{
|
{
|
||||||
this.lastReportedValue += st.getStackSize();
|
if( change != null )
|
||||||
|
{
|
||||||
|
if( gridItemCount.containsKey( g ) )
|
||||||
|
{
|
||||||
|
change.forEach( iaeItemStack -> lastReportedValue += iaeItemStack.getStackSize() );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
gridItemCount.computeIfAbsent( g, ( aLong ) -> {
|
||||||
|
this.lastReportedValue = 0;
|
||||||
|
monitor.getStorageList().forEach( iaeItemStack -> lastReportedValue += iaeItemStack.getStackSize() );
|
||||||
|
return ( lastReportedValue );
|
||||||
|
} );
|
||||||
|
this.lastReportedValue = gridItemCount.get( g );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
else if( this.getInstalledUpgrades( Upgrades.FUZZY ) > 0 )
|
else if( this.getInstalledUpgrades( Upgrades.FUZZY ) > 0 )
|
||||||
{
|
|
||||||
this.lastReportedValue = 0;
|
|
||||||
final FuzzyMode fzMode = (FuzzyMode) this.getConfigManager().getSetting( Settings.FUZZY_MODE );
|
|
||||||
final Collection<IAEItemStack> fuzzyList = monitor.getStorageList().findFuzzy( myStack, fzMode );
|
|
||||||
for( final IAEItemStack st : fuzzyList )
|
|
||||||
{
|
{
|
||||||
this.lastReportedValue += st.getStackSize();
|
final FuzzyMode fzMode = (FuzzyMode) this.getConfigManager().getSetting( Settings.FUZZY_MODE );
|
||||||
}
|
if( change != null )
|
||||||
}
|
{
|
||||||
else
|
if( fuzzyAEItemStackCount.containsKey( g ) )
|
||||||
{
|
{
|
||||||
final IAEItemStack r = monitor.getStorageList().findPrecise( myStack );
|
change.forEach( iaeItemStack -> {
|
||||||
if( r == null )
|
if( iaeItemStack.sameOre( myStack ) ) lastReportedValue += iaeItemStack.getStackSize();
|
||||||
{
|
} );
|
||||||
this.lastReportedValue = 0;
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
fuzzyAEItemStackCount.computeIfAbsent( g, ( grid -> new Object2LongOpenHashMap<>() ) );
|
||||||
|
fuzzyAEItemStackCount.get( g ).computeIfAbsent( (AEItemStack) myStack, ( aLong -> {
|
||||||
|
this.lastReportedValue = 0;
|
||||||
|
monitor.getStorageList().findFuzzy( myStack, fzMode ).forEach( iaeItemStack -> lastReportedValue += iaeItemStack.getStackSize() );
|
||||||
|
return ( lastReportedValue );
|
||||||
|
} ) );
|
||||||
|
|
||||||
|
this.lastReportedValue = fuzzyAEItemStackCount.get( g ).get( myStack );
|
||||||
|
if( this.lastReportedValue == 0 )
|
||||||
|
{
|
||||||
|
fuzzyAEItemStackCount.get( g ).remove( myStack );
|
||||||
|
fuzzyAEItemStackCount.trim();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
this.lastReportedValue = r.getStackSize();
|
if( change != null )
|
||||||
|
{
|
||||||
|
if( preciseAEItemStackCount.containsKey( g ) )
|
||||||
|
{
|
||||||
|
change.forEach( iaeItemStack -> {
|
||||||
|
if( iaeItemStack.isSameType( myStack ) ) lastReportedValue += iaeItemStack.getStackSize();
|
||||||
|
} );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
preciseAEItemStackCount.computeIfAbsent( g, ( grid -> new Object2LongOpenHashMap<>() ) );
|
||||||
|
preciseAEItemStackCount.get( g ).computeIfAbsent( (AEItemStack) myStack, ( aLong -> {
|
||||||
|
this.lastReportedValue = 0;
|
||||||
|
IAEItemStack precise = monitor.getStorageList().findPrecise( myStack );
|
||||||
|
if( precise != null ) lastReportedValue = precise.getStackSize();
|
||||||
|
return ( lastReportedValue );
|
||||||
|
} ) );
|
||||||
|
this.lastReportedValue = preciseAEItemStackCount.get( g ).get( myStack );
|
||||||
|
if( this.lastReportedValue == 0 )
|
||||||
|
{
|
||||||
|
preciseAEItemStackCount.get( g ).remove( myStack );
|
||||||
|
preciseAEItemStackCount.trim();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.updateState();
|
this.updateState();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -400,7 +459,7 @@ public class PartLevelEmitter extends PartUpgradeable implements IEnergyWatcherH
|
|||||||
@Override
|
@Override
|
||||||
public void postChange( final IBaseMonitor<IAEItemStack> monitor, final Iterable<IAEItemStack> change, final IActionSource actionSource )
|
public void postChange( final IBaseMonitor<IAEItemStack> monitor, final Iterable<IAEItemStack> change, final IActionSource actionSource )
|
||||||
{
|
{
|
||||||
this.updateReportingValue( (IMEMonitor<IAEItemStack>) monitor );
|
this.updateReportingValue( (IMEMonitor<IAEItemStack>) monitor, change );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -576,4 +635,10 @@ public class PartLevelEmitter extends PartUpgradeable implements IEnergyWatcherH
|
|||||||
return this.isLevelEmitterOn() ? MODEL_ON_OFF : MODEL_OFF_OFF;
|
return this.isLevelEmitterOn() ? MODEL_ON_OFF : MODEL_OFF_OFF;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void wipeCache(){
|
||||||
|
fuzzyAEItemStackCount.clear();
|
||||||
|
preciseAEItemStackCount.clear();
|
||||||
|
gridItemCount.clear();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,9 +26,9 @@ import java.util.Iterator;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import it.unimi.dsi.fastutil.ints.IntList;
|
import appeng.api.config.Settings;
|
||||||
|
import appeng.api.config.StorageFilter;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.util.NonNullList;
|
|
||||||
import net.minecraftforge.items.IItemHandler;
|
import net.minecraftforge.items.IItemHandler;
|
||||||
|
|
||||||
import appeng.api.AEApi;
|
import appeng.api.AEApi;
|
||||||
@@ -59,12 +59,18 @@ class ItemHandlerAdapter implements IMEInventory<IAEItemStack>, IBaseMonitor<IAE
|
|||||||
private final IItemHandler itemHandler;
|
private final IItemHandler itemHandler;
|
||||||
private final IGridProxyable proxyable;
|
private final IGridProxyable proxyable;
|
||||||
private final InventoryCache cache;
|
private final InventoryCache cache;
|
||||||
|
private StorageFilter mode;
|
||||||
|
|
||||||
ItemHandlerAdapter( IItemHandler itemHandler, IGridProxyable proxy )
|
ItemHandlerAdapter( IItemHandler itemHandler, IGridProxyable proxy )
|
||||||
{
|
{
|
||||||
this.itemHandler = itemHandler;
|
this.itemHandler = itemHandler;
|
||||||
this.proxyable = proxy;
|
this.proxyable = proxy;
|
||||||
this.cache = new InventoryCache( this.itemHandler );
|
if( this.proxyable instanceof PartStorageBus )
|
||||||
|
{
|
||||||
|
PartStorageBus partStorageBus = (PartStorageBus) this.proxyable;
|
||||||
|
this.mode = ( (StorageFilter) partStorageBus.getConfigManager().getSetting( Settings.STORAGE_FILTER ) );
|
||||||
|
}
|
||||||
|
this.cache = new InventoryCache( this.itemHandler, this.mode );
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -270,12 +276,12 @@ class ItemHandlerAdapter implements IMEInventory<IAEItemStack>, IBaseMonitor<IAE
|
|||||||
{
|
{
|
||||||
private IAEItemStack[] cachedAeStacks = new IAEItemStack[0];
|
private IAEItemStack[] cachedAeStacks = new IAEItemStack[0];
|
||||||
private final IItemHandler itemHandler;
|
private final IItemHandler itemHandler;
|
||||||
private ArrayList<Integer> skipSlots;
|
private final StorageFilter mode;
|
||||||
|
|
||||||
public InventoryCache( IItemHandler itemHandler )
|
public InventoryCache( IItemHandler itemHandler, StorageFilter mode )
|
||||||
{
|
{
|
||||||
|
this.mode = mode;
|
||||||
this.itemHandler = itemHandler;
|
this.itemHandler = itemHandler;
|
||||||
this.skipSlots = new ArrayList<>(this.itemHandler.getSlots());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public IItemList<IAEItemStack> getAvailableItems( IItemList<IAEItemStack> out )
|
public IItemList<IAEItemStack> getAvailableItems( IItemList<IAEItemStack> out )
|
||||||
@@ -293,20 +299,18 @@ class ItemHandlerAdapter implements IMEInventory<IAEItemStack>, IBaseMonitor<IAE
|
|||||||
if( slots > this.cachedAeStacks.length )
|
if( slots > this.cachedAeStacks.length )
|
||||||
{
|
{
|
||||||
this.cachedAeStacks = Arrays.copyOf( this.cachedAeStacks, slots );
|
this.cachedAeStacks = Arrays.copyOf( this.cachedAeStacks, slots );
|
||||||
this.skipSlots = new ArrayList<>(this.itemHandler.getSlots());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for( int slot = 0; slot < slots; slot++ )
|
for( int slot = 0; slot < slots; slot++ )
|
||||||
{
|
{
|
||||||
if (skipSlots.contains( slot ))
|
|
||||||
continue;
|
|
||||||
// Save the old stuff
|
// Save the old stuff
|
||||||
final IAEItemStack oldAeIS = this.cachedAeStacks[slot];
|
final IAEItemStack oldAeIS = this.cachedAeStacks[slot];
|
||||||
ItemStack newIS = this.itemHandler.getStackInSlot( slot );
|
ItemStack newIS = this.itemHandler.getStackInSlot( slot );
|
||||||
if (!newIS.isEmpty()) {
|
if( this.mode == StorageFilter.EXTRACTABLE_ONLY && !newIS.isEmpty() )
|
||||||
if (this.itemHandler.extractItem( slot,1,true ).isEmpty()){
|
{
|
||||||
|
if( this.itemHandler.extractItem( slot, 1, true ).isEmpty() )
|
||||||
|
{
|
||||||
newIS = ItemStack.EMPTY;
|
newIS = ItemStack.EMPTY;
|
||||||
skipSlots.add( slot );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.handlePossibleSlotChanges( slot, oldAeIS, newIS, changes );
|
this.handlePossibleSlotChanges( slot, oldAeIS, newIS, changes );
|
||||||
@@ -329,7 +333,6 @@ class ItemHandlerAdapter implements IMEInventory<IAEItemStack>, IBaseMonitor<IAE
|
|||||||
|
|
||||||
// Reduce the cache size
|
// Reduce the cache size
|
||||||
this.cachedAeStacks = Arrays.copyOf( this.cachedAeStacks, slots );
|
this.cachedAeStacks = Arrays.copyOf( this.cachedAeStacks, slots );
|
||||||
this.skipSlots = new ArrayList<>(this.itemHandler.getSlots());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return changes;
|
return changes;
|
||||||
|
|||||||
@@ -484,6 +484,7 @@ public class PartStorageBus extends PartUpgradeable implements IGridTickable, IC
|
|||||||
{
|
{
|
||||||
this.monitor = (ITickingMonitor) inv;
|
this.monitor = (ITickingMonitor) inv;
|
||||||
this.monitor.setActionSource( new MachineSource( this ) );
|
this.monitor.setActionSource( new MachineSource( this ) );
|
||||||
|
this.monitor.setMode( (StorageFilter) this.getConfigManager().getSetting( Settings.STORAGE_FILTER ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
if( inv != null )
|
if( inv != null )
|
||||||
|
|||||||
@@ -44,6 +44,9 @@ public class PartInterfaceTerminal extends AbstractPartDisplay
|
|||||||
public static final IPartModel MODELS_OFF = new PartModel( MODEL_BASE, MODEL_OFF, MODEL_STATUS_OFF );
|
public static final IPartModel MODELS_OFF = new PartModel( MODEL_BASE, MODEL_OFF, MODEL_STATUS_OFF );
|
||||||
public static final IPartModel MODELS_ON = new PartModel( MODEL_BASE, MODEL_ON, MODEL_STATUS_ON );
|
public static final IPartModel MODELS_ON = new PartModel( MODEL_BASE, MODEL_ON, MODEL_STATUS_ON );
|
||||||
public static final IPartModel MODELS_HAS_CHANNEL = new PartModel( MODEL_BASE, MODEL_ON, MODEL_STATUS_HAS_CHANNEL );
|
public static final IPartModel MODELS_HAS_CHANNEL = new PartModel( MODEL_BASE, MODEL_ON, MODEL_STATUS_HAS_CHANNEL );
|
||||||
|
public String in = "";
|
||||||
|
public String out = "";
|
||||||
|
public boolean onlyInterfacesWithFreeSlots = false;
|
||||||
|
|
||||||
public PartInterfaceTerminal( final ItemStack is )
|
public PartInterfaceTerminal( final ItemStack is )
|
||||||
{
|
{
|
||||||
@@ -69,4 +72,8 @@ public class PartInterfaceTerminal extends AbstractPartDisplay
|
|||||||
return this.selectModel( MODELS_OFF, MODELS_ON, MODELS_HAS_CHANNEL );
|
return this.selectModel( MODELS_OFF, MODELS_ON, MODELS_HAS_CHANNEL );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void saveSearchStrings(String in, String out){
|
||||||
|
this.in = in;
|
||||||
|
this.out = out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,36 @@
|
|||||||
|
package appeng.recipes.factories.conditions;
|
||||||
|
|
||||||
|
import appeng.core.Api;
|
||||||
|
import appeng.core.AppEng;
|
||||||
|
import com.google.gson.JsonObject;
|
||||||
|
import net.minecraft.util.JsonUtils;
|
||||||
|
import net.minecraftforge.common.crafting.IConditionFactory;
|
||||||
|
import net.minecraftforge.common.crafting.JsonContext;
|
||||||
|
|
||||||
|
import java.util.function.BooleanSupplier;
|
||||||
|
|
||||||
|
public class PartExists implements IConditionFactory {
|
||||||
|
|
||||||
|
private static final String JSON_MATERIAL_KEY = "part";
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public BooleanSupplier parse(JsonContext jsonContext, JsonObject jsonObject )
|
||||||
|
{
|
||||||
|
final boolean result;
|
||||||
|
|
||||||
|
if( JsonUtils.isString( jsonObject, JSON_MATERIAL_KEY ) )
|
||||||
|
{
|
||||||
|
final String part = JsonUtils.getString( jsonObject, JSON_MATERIAL_KEY );
|
||||||
|
final Object item = Api.INSTANCE.registries().recipes().resolveItem( AppEng.MOD_ID, part );
|
||||||
|
|
||||||
|
result = item != null;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
result = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return () -> result;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -197,7 +197,7 @@ public class AdaptorItemRepository extends InventoryAdaptor
|
|||||||
@Override
|
@Override
|
||||||
public boolean hasSlots()
|
public boolean hasSlots()
|
||||||
{
|
{
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -1,4 +1,23 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:charger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:7"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:part:16"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:part",
|
"item": "appliedenergistics2:part",
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:1"
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:material",
|
"item": "appliedenergistics2:material",
|
||||||
|
|||||||
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:charger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:1"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:charger"
|
"item": "appliedenergistics2:charger"
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_compass"
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:sky_compass"
|
"item": "appliedenergistics2:sky_compass"
|
||||||
|
|||||||
@@ -1,4 +1,31 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:13"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:14"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:15"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:19"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:controller"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:controller"
|
"item": "appliedenergistics2:controller"
|
||||||
|
|||||||
@@ -1,4 +1,55 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:crafting_storage_1k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:crafting_storage_4k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:crafting_storage_16k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:crafting_storage_64k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:13"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:14"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:15"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:19"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:controller"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:part:360"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:part:340"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:crafting_storage_64k"
|
"item": "appliedenergistics2:crafting_storage_64k"
|
||||||
|
|||||||
+31
@@ -1,4 +1,35 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:13"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:14"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:15"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:19"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:controller"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:part:360"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:part",
|
"item": "appliedenergistics2:part",
|
||||||
|
|||||||
@@ -1,4 +1,27 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:charger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:7"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:part:16"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:facade"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:facade"
|
"item": "appliedenergistics2:facade"
|
||||||
|
|||||||
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:charger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:7"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:material",
|
"item": "appliedenergistics2:material",
|
||||||
|
|||||||
+19
@@ -1,4 +1,23 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:charger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:7"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_growth_accelerator"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:quartz_growth_accelerator"
|
"item": "appliedenergistics2:quartz_growth_accelerator"
|
||||||
|
|||||||
@@ -1,4 +1,27 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:charger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:7"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:part:16"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:interface"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:interface"
|
"item": "appliedenergistics2:interface"
|
||||||
|
|||||||
@@ -1,4 +1,46 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_1k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_4k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_16k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_64k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:13"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:14"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:15"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:19"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:controller"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:io_port"
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:io_port"
|
"item": "appliedenergistics2:io_port"
|
||||||
|
|||||||
@@ -1,4 +1,23 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:charger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:7"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:part:16"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:part",
|
"item": "appliedenergistics2:part",
|
||||||
|
|||||||
@@ -1,4 +1,23 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:charger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:7"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:part:16"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:part",
|
"item": "appliedenergistics2:part",
|
||||||
|
|||||||
@@ -1,4 +1,23 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:charger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:7"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:part:16"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:part",
|
"item": "appliedenergistics2:part",
|
||||||
|
|||||||
@@ -1,4 +1,35 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:13"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:14"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:15"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:19"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:controller"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:network_tool"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:network_tool"
|
"item": "appliedenergistics2:network_tool"
|
||||||
|
|||||||
@@ -1,4 +1,27 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:charger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:7"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:part:16"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:part:460"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:part",
|
"item": "appliedenergistics2:part",
|
||||||
|
|||||||
@@ -1,4 +1,39 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:13"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:14"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:15"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:19"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:controller"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:part:360"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:part:340"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:part",
|
"item": "appliedenergistics2:part",
|
||||||
|
|||||||
@@ -1,4 +1,46 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_1k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_4k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_16k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_64k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:13"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:14"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:15"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:19"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:controller"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:portable_cell"
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:portable_cell"
|
"item": "appliedenergistics2:portable_cell"
|
||||||
|
|||||||
@@ -1,4 +1,27 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:13"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:14"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:15"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:19"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:material",
|
"item": "appliedenergistics2:material",
|
||||||
|
|||||||
@@ -1,4 +1,31 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:charger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:7"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:part:16"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:part:460"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quantum_link"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:quantum_link"
|
"item": "appliedenergistics2:quantum_link"
|
||||||
|
|||||||
@@ -1,4 +1,50 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_1k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_4k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_16k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_64k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:13"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:14"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:15"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:19"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:controller"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:io_port"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:spatial_io_port"
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:spatial_storage_cell_128_cubed"
|
"item": "appliedenergistics2:spatial_storage_cell_128_cubed"
|
||||||
|
|||||||
@@ -1,4 +1,50 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_1k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_4k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_16k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_64k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:13"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:14"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:15"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:19"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:controller"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:io_port"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:spatial_io_port"
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:spatial_io_port"
|
"item": "appliedenergistics2:spatial_io_port"
|
||||||
|
|||||||
@@ -1,4 +1,31 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:charger"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:7"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:part:16"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:interface"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:part:220"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:part",
|
"item": "appliedenergistics2:part",
|
||||||
|
|||||||
@@ -1,4 +1,42 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_1k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_4k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_16k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:storage_cell_64k"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:13"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:14"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:15"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:material:19"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:controller"
|
||||||
|
}
|
||||||
|
],
|
||||||
"display": {
|
"display": {
|
||||||
"icon": {
|
"icon": {
|
||||||
"item": "appliedenergistics2:storage_cell_64k"
|
"item": "appliedenergistics2:storage_cell_64k"
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.fluix_dust"
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "appliedenergistics2:grinder",
|
"type": "appliedenergistics2:grinder",
|
||||||
"input": {
|
"input": {
|
||||||
"type": "forge:ore_dict",
|
"type": "forge:ore_dict",
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_block"
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "appliedenergistics2:grinder",
|
"type": "appliedenergistics2:grinder",
|
||||||
"input": {
|
"input": {
|
||||||
"item": "appliedenergistics2:sky_stone_block"
|
"item": "appliedenergistics2:sky_stone_block"
|
||||||
|
|||||||
+19
@@ -1,4 +1,23 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.engineering_processor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.engineering_processor_print"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.silicon_print"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "appliedenergistics2:inscriber",
|
"type": "appliedenergistics2:inscriber",
|
||||||
"mode": "press",
|
"mode": "press",
|
||||||
"result": {
|
"result": {
|
||||||
|
|||||||
+6
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.calculation_processor_press"
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "appliedenergistics2:inscriber",
|
"type": "appliedenergistics2:inscriber",
|
||||||
"mode": "inscribe",
|
"mode": "inscribe",
|
||||||
"result": {
|
"result": {
|
||||||
|
|||||||
+19
@@ -1,4 +1,23 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.calculation_processor_print"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.calculation_processor_press"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.purified_certus_quartz_crystal"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "appliedenergistics2:inscriber",
|
"type": "appliedenergistics2:inscriber",
|
||||||
"mode": "inscribe",
|
"mode": "inscribe",
|
||||||
"result": {
|
"result": {
|
||||||
|
|||||||
+19
@@ -1,4 +1,23 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.calculation_processor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.calculation_processor_print"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.silicon_print"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "appliedenergistics2:inscriber",
|
"type": "appliedenergistics2:inscriber",
|
||||||
"mode": "press",
|
"mode": "press",
|
||||||
"result": {
|
"result": {
|
||||||
|
|||||||
+6
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.engineering_processor_press"
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "appliedenergistics2:inscriber",
|
"type": "appliedenergistics2:inscriber",
|
||||||
"mode": "inscribe",
|
"mode": "inscribe",
|
||||||
"result": {
|
"result": {
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.engineering_processor_print"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.engineering_processor_press"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "appliedenergistics2:inscriber",
|
"type": "appliedenergistics2:inscriber",
|
||||||
"mode": "inscribe",
|
"mode": "inscribe",
|
||||||
"result": {
|
"result": {
|
||||||
|
|||||||
+19
@@ -1,4 +1,23 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.logic_processor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.logic_processor_print"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.silicon_print"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "appliedenergistics2:inscriber",
|
"type": "appliedenergistics2:inscriber",
|
||||||
"mode": "press",
|
"mode": "press",
|
||||||
"result": {
|
"result": {
|
||||||
|
|||||||
+6
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.logic_processor_press"
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "appliedenergistics2:inscriber",
|
"type": "appliedenergistics2:inscriber",
|
||||||
"mode": "inscribe",
|
"mode": "inscribe",
|
||||||
"result": {
|
"result": {
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.logic_processor_print"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.logic_processor_press"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "appliedenergistics2:inscriber",
|
"type": "appliedenergistics2:inscriber",
|
||||||
"mode": "inscribe",
|
"mode": "inscribe",
|
||||||
"result": {
|
"result": {
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.silicon_press"
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "appliedenergistics2:inscriber",
|
"type": "appliedenergistics2:inscriber",
|
||||||
"mode": "inscribe",
|
"mode": "inscribe",
|
||||||
"result": {
|
"result": {
|
||||||
|
|||||||
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.silicon_print"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.silicon_press"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "appliedenergistics2:inscriber",
|
"type": "appliedenergistics2:inscriber",
|
||||||
"mode": "inscribe",
|
"mode": "inscribe",
|
||||||
"result": {
|
"result": {
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.flour"
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "appliedenergistics2:smelt",
|
"type": "appliedenergistics2:smelt",
|
||||||
"result": {
|
"result": {
|
||||||
"item": "minecraft:bread"
|
"item": "minecraft:bread"
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.silicon"
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "appliedenergistics2:smelt",
|
"type": "appliedenergistics2:smelt",
|
||||||
"result": {
|
"result": {
|
||||||
"part": "material.silicon"
|
"part": "material.silicon"
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:smooth_sky_stone_block"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_block"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"type": "appliedenergistics2:smelt",
|
"type": "appliedenergistics2:smelt",
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:smooth_sky_stone_block"
|
"item": "appliedenergistics2:smooth_sky_stone_block"
|
||||||
|
|||||||
@@ -363,6 +363,12 @@ gui.tooltips.appliedenergistics2.DecreaseByOne=Decrease one
|
|||||||
gui.tooltips.appliedenergistics2.DecreaseByOneDesc=Will try to add decrease the items set in the crafting slots by one DOES NOT MAINTAIN INGREDIENT RATIO
|
gui.tooltips.appliedenergistics2.DecreaseByOneDesc=Will try to add decrease the items set in the crafting slots by one DOES NOT MAINTAIN INGREDIENT RATIO
|
||||||
gui.tooltips.appliedenergistics2.MaxCount=Maximize slot count
|
gui.tooltips.appliedenergistics2.MaxCount=Maximize slot count
|
||||||
gui.tooltips.appliedenergistics2.MaxCountDesc=Will maximize the output maintaing the input ratio of the items set in the crafting slots
|
gui.tooltips.appliedenergistics2.MaxCountDesc=Will maximize the output maintaing the input ratio of the items set in the crafting slots
|
||||||
|
gui.tooltips.appliedenergistics2.FreeMolecularSlotShortcut=Show Crafting interfaces with free slots
|
||||||
|
gui.tooltips.appliedenergistics2.FreeMolecularSlotShortcutDesc=Shortcut that toggles interfaces with free slots and searches for molecular assemblers
|
||||||
|
gui.tooltips.appliedenergistics2.ToggleShowFullInterfaces=Toggles showing interfaces with full slots
|
||||||
|
gui.tooltips.appliedenergistics2.ToggleShowFullInterfacesOnDesc=Showing all interfaces
|
||||||
|
gui.tooltips.appliedenergistics2.ToggleShowFullInterfacesOffDesc=Showing only interfaces with free slots
|
||||||
|
gui.tooltips.appliedenergistics2.HighlightInterface=Highlight interface
|
||||||
|
|
||||||
// Units
|
// Units
|
||||||
gui.appliedenergistics2.units.appliedenergstics=AE
|
gui.appliedenergistics2.units.appliedenergstics=AE
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
{
|
{
|
||||||
"conditions": {
|
"conditions": {
|
||||||
"material_exists": "appeng.recipes.factories.conditions.MaterialExists",
|
"material_exists": "appeng.recipes.factories.conditions.MaterialExists",
|
||||||
"features": "appeng.recipes.factories.conditions.Features"
|
"features": "appeng.recipes.factories.conditions.Features",
|
||||||
|
"part_exists": "appeng.recipes.factories.conditions.PartExists"
|
||||||
},
|
},
|
||||||
"ingredients": {
|
"ingredients": {
|
||||||
"part": "appeng.recipes.factories.ingredients.PartIngredientFactory"
|
"part": "appeng.recipes.factories.ingredients.PartIngredientFactory"
|
||||||
|
|||||||
+6
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_block"
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:quartz_block"
|
"item": "appliedenergistics2:quartz_block"
|
||||||
},
|
},
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_block"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.purified_certus_quartz_crystal"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:quartz_block"
|
"item": "appliedenergistics2:quartz_block"
|
||||||
},
|
},
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_pillar"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_block"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:quartz_pillar",
|
"item": "appliedenergistics2:quartz_pillar",
|
||||||
"count": 2
|
"count": 2
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:chiseled_quartz_block"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_block"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:chiseled_quartz_block",
|
"item": "appliedenergistics2:chiseled_quartz_block",
|
||||||
"count": 2
|
"count": 2
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:fluix_block"
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:fluix_block"
|
"item": "appliedenergistics2:fluix_block"
|
||||||
},
|
},
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:fluix_block"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.purified_fluix_crystal"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:fluix_block"
|
"item": "appliedenergistics2:fluix_block"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:light_detector"
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:light_detector"
|
"item": "appliedenergistics2:light_detector"
|
||||||
},
|
},
|
||||||
|
|||||||
+6
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.purified_nether_quartz_crystal"
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "minecraft:quartz_block",
|
"item": "minecraft:quartz_block",
|
||||||
"data": 0
|
"data": 0
|
||||||
|
|||||||
@@ -1,4 +1,20 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_fixture"
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.certus_quartz_crystal_charged"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:quartz_fixture",
|
"item": "appliedenergistics2:quartz_fixture",
|
||||||
"count": 2
|
"count": 2
|
||||||
|
|||||||
@@ -1,4 +1,10 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_glass"
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:quartz_glass",
|
"item": "appliedenergistics2:quartz_glass",
|
||||||
"count": 4
|
"count": 4
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_vibrant_glass"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_glass"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:quartz_vibrant_glass"
|
"item": "appliedenergistics2:quartz_vibrant_glass"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_brick"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:smooth_sky_stone_block"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:sky_stone_brick"
|
"item": "appliedenergistics2:sky_stone_brick"
|
||||||
},
|
},
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_small_brick"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_brick"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:sky_stone_small_brick"
|
"item": "appliedenergistics2:sky_stone_small_brick"
|
||||||
},
|
},
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:smooth_sky_stone_block"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_small_brick"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:smooth_sky_stone_block"
|
"item": "appliedenergistics2:smooth_sky_stone_block"
|
||||||
},
|
},
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:chiseled_quartz_slab"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:chiseled_quartz_block"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:chiseled_quartz_slab",
|
"item": "appliedenergistics2:chiseled_quartz_slab",
|
||||||
"data": 0,
|
"data": 0,
|
||||||
|
|||||||
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:fluix_slab"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:fluix_block"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:fluix_slab",
|
"item": "appliedenergistics2:fluix_slab",
|
||||||
"data": 0,
|
"data": 0,
|
||||||
|
|||||||
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_slab"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_block"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:quartz_slab",
|
"item": "appliedenergistics2:quartz_slab",
|
||||||
"data": 0,
|
"data": 0,
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_pillar_slab"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_pillar"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:quartz_pillar_slab",
|
"item": "appliedenergistics2:quartz_pillar_slab",
|
||||||
"data": 0,
|
"data": 0,
|
||||||
|
|||||||
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_slab"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_block"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:sky_stone_slab",
|
"item": "appliedenergistics2:sky_stone_slab",
|
||||||
"data": 0,
|
"data": 0,
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_brick_slab"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_brick"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:sky_stone_brick_slab",
|
"item": "appliedenergistics2:sky_stone_brick_slab",
|
||||||
"data": 0,
|
"data": 0,
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_small_brick_slab"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_small_brick"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:sky_stone_small_brick_slab",
|
"item": "appliedenergistics2:sky_stone_small_brick_slab",
|
||||||
"data": 0,
|
"data": 0,
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:smooth_sky_stone_slab"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:smooth_sky_stone_block"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:smooth_sky_stone_slab",
|
"item": "appliedenergistics2:smooth_sky_stone_slab",
|
||||||
"data": 0,
|
"data": 0,
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:chiseled_quartz_stairs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:chiseled_quartz_block"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:chiseled_quartz_stairs",
|
"item": "appliedenergistics2:chiseled_quartz_stairs",
|
||||||
"count": 4
|
"count": 4
|
||||||
|
|||||||
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:fluix_stairs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:fluix_block"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:fluix_stairs",
|
"item": "appliedenergistics2:fluix_stairs",
|
||||||
"count": 4
|
"count": 4
|
||||||
|
|||||||
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_stairs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_block"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:quartz_stairs",
|
"item": "appliedenergistics2:quartz_stairs",
|
||||||
"count": 4
|
"count": 4
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_pillar_stairs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:quartz_pillar"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:quartz_pillar_stairs",
|
"item": "appliedenergistics2:quartz_pillar_stairs",
|
||||||
"count": 4
|
"count": 4
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_stairs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_block"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:sky_stone_stairs",
|
"item": "appliedenergistics2:sky_stone_stairs",
|
||||||
"count": 4
|
"count": 4
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_brick_stairs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_brick"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:sky_stone_brick_stairs",
|
"item": "appliedenergistics2:sky_stone_brick_stairs",
|
||||||
"count": 4
|
"count": 4
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_small_brick_stairs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:sky_stone_small_brick"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:sky_stone_small_brick_stairs",
|
"item": "appliedenergistics2:sky_stone_small_brick_stairs",
|
||||||
"count": 4
|
"count": 4
|
||||||
|
|||||||
+15
@@ -1,4 +1,19 @@
|
|||||||
{
|
{
|
||||||
|
"conditions": [
|
||||||
|
{
|
||||||
|
"type": "forge:and",
|
||||||
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:smooth_sky_stone_stairs"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "minecraft:item_exists",
|
||||||
|
"item": "appliedenergistics2:smooth_sky_stone_block"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
"result": {
|
"result": {
|
||||||
"item": "appliedenergistics2:smooth_sky_stone_stairs",
|
"item": "appliedenergistics2:smooth_sky_stone_stairs",
|
||||||
"count": 4
|
"count": 4
|
||||||
|
|||||||
@@ -1,8 +1,17 @@
|
|||||||
{
|
{
|
||||||
"conditions": [
|
"conditions": [
|
||||||
{
|
{
|
||||||
"type": "appliedenergistics2:material_exists",
|
"type": "forge:and",
|
||||||
"material": "material.advanced_card"
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.advanced_card"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.calculation_processor"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"result": {
|
"result": {
|
||||||
|
|||||||
+11
-2
@@ -1,8 +1,17 @@
|
|||||||
{
|
{
|
||||||
"conditions": [
|
"conditions": [
|
||||||
{
|
{
|
||||||
"type": "appliedenergistics2:material_exists",
|
"type": "forge:and",
|
||||||
"material": "material.annihilation_core"
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.annihilation_core"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.logic_processor"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"result": {
|
"result": {
|
||||||
|
|||||||
@@ -1,8 +1,17 @@
|
|||||||
{
|
{
|
||||||
"conditions": [
|
"conditions": [
|
||||||
{
|
{
|
||||||
"type": "appliedenergistics2:material_exists",
|
"type": "forge:and",
|
||||||
"material": "material.basic_card"
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.calculation_processor"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.basic_card"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"result": {
|
"result": {
|
||||||
|
|||||||
@@ -1,8 +1,17 @@
|
|||||||
{
|
{
|
||||||
"conditions": [
|
"conditions": [
|
||||||
{
|
{
|
||||||
"type": "appliedenergistics2:material_exists",
|
"type": "forge:and",
|
||||||
"material": "material.card_capacity"
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.card_capacity"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.basic_card"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"result": {
|
"result": {
|
||||||
|
|||||||
@@ -1,8 +1,17 @@
|
|||||||
{
|
{
|
||||||
"conditions": [
|
"conditions": [
|
||||||
{
|
{
|
||||||
"type": "appliedenergistics2:material_exists",
|
"type": "forge:and",
|
||||||
"material": "material.card_crafting"
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.card_crafting"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.basic_card"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"result": {
|
"result": {
|
||||||
|
|||||||
@@ -1,8 +1,17 @@
|
|||||||
{
|
{
|
||||||
"conditions": [
|
"conditions": [
|
||||||
{
|
{
|
||||||
"type": "appliedenergistics2:material_exists",
|
"type": "forge:and",
|
||||||
"material": "material.card_fuzzy"
|
"values": [
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.card_fuzzy"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "appliedenergistics2:material_exists",
|
||||||
|
"material": "material.advanced_card"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"result": {
|
"result": {
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user