Added legacy Crafting Monitor
This commit is contained in:
parent
425d3868dd
commit
bfa013b73c
|
@ -0,0 +1,37 @@
|
|||
package appeng.block.legacy;
|
||||
|
||||
import appeng.block.AEBaseTileBlock;
|
||||
import appeng.core.features.AEFeature;
|
||||
import appeng.core.sync.GuiBridge;
|
||||
import appeng.tile.legacy.TileCraftingMonitor;
|
||||
import appeng.util.Platform;
|
||||
import net.minecraft.block.material.Material;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
|
||||
import java.util.EnumSet;
|
||||
|
||||
public class BlockCraftMonitor extends AEBaseTileBlock {
|
||||
|
||||
public BlockCraftMonitor() {
|
||||
super(Material.iron);
|
||||
this.setTileEntity(TileCraftingMonitor.class);
|
||||
this.setFeature( EnumSet.of(AEFeature.Legacy) );
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActivated(World w, int x, int y, int z, EntityPlayer player, int side, float hitX, float hitY, float hitZ) {
|
||||
final TileCraftingMonitor tile = this.getTileEntity(w, x, y, z);
|
||||
if( tile != null && !player.isSneaking() ) {
|
||||
if( Platform.isClient() )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
Platform.openGUI(player, tile, ForgeDirection.getOrientation(side), GuiBridge.GUI_CRAFTING_STATUS);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
|
@ -27,6 +27,7 @@ import appeng.block.AEBaseSlabBlock;
|
|||
import appeng.block.crafting.*;
|
||||
import appeng.block.grindstone.BlockCrank;
|
||||
import appeng.block.grindstone.BlockGrinder;
|
||||
import appeng.block.legacy.BlockCraftMonitor;
|
||||
import appeng.block.legacy.BlockCraftTerminal;
|
||||
import appeng.block.legacy.BlockTerminal;
|
||||
import appeng.block.misc.*;
|
||||
|
@ -134,6 +135,7 @@ public final class ApiBlocks implements IBlocks
|
|||
//Legacy
|
||||
private final ITileDefinition terminal;
|
||||
private final ITileDefinition craftTerminal;
|
||||
private final ITileDefinition craftMonitor;
|
||||
|
||||
public ApiBlocks( final DefinitionConstructor constructor )
|
||||
{
|
||||
|
@ -227,6 +229,7 @@ public final class ApiBlocks implements IBlocks
|
|||
//Legacy
|
||||
this.terminal = constructor.registerTileDefinition( new BlockTerminal() );
|
||||
this.craftTerminal = constructor.registerTileDefinition( new BlockCraftTerminal() );
|
||||
this.craftMonitor = constructor.registerTileDefinition( new BlockCraftMonitor());
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
package appeng.tile.legacy;
|
||||
|
||||
import appeng.api.storage.ITerminalHost;
|
||||
|
||||
public class TileCraftingMonitor extends TileTerminal {
|
||||
}
|
|
@ -54,6 +54,7 @@ tile.appliedenergistics2.BlockMolecularAssembler.name=Molecular Assembler
|
|||
#Legacy
|
||||
tile.appliedenergistics2.BlockTerminal.name=ME Access Terminal
|
||||
tile.appliedenergistics2.BlockCraftTerminal.name=ME Crafting Terminal
|
||||
tile.appliedenergistics2.BlockCraftMonitor.name=ME Crafting Monitor
|
||||
|
||||
item.appliedenergistics2.ItemMaterial.ConversionMatrix.name=Conversion Matrix
|
||||
|
||||
|
|
|
@ -21,3 +21,9 @@ shaped=
|
|||
oredictionary:craftingTableWood ae2:ItemMaterial.Cell1kPart ae2:BlockTerminal,
|
||||
oredictionary:ingotIron oredictionary:ingotIron glass
|
||||
-> ae2:BlockCraftTerminal
|
||||
|
||||
shaped=
|
||||
oredictionary:ingotIron oredictionary:ingotIron glass,
|
||||
ae2:CableGlass.Fluix ae2:ItemMaterial.LogicProcessor glass,
|
||||
oredictionary:ingotIron oredictionary:ingotIron glass
|
||||
-> ae2:BlockCraftMonitor
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 398 B |
Binary file not shown.
After Width: | Height: | Size: 398 B |
Binary file not shown.
After Width: | Height: | Size: 362 B |
Binary file not shown.
After Width: | Height: | Size: 438 B |
Loading…
Reference in New Issue