remove anvil ICrafting (useless)
This commit is contained in:
parent
454e38d1ab
commit
987c76d2c5
5 changed files with 12 additions and 180 deletions
|
@ -172,7 +172,7 @@ public class BlockAnvil extends BlockFalling implements Rotatable
|
|||
|
||||
public Container createContainer(InventoryPlayer playerInventory, EntityNPC playerIn)
|
||||
{
|
||||
return new ContainerRepair(playerInventory, this.world, this.position, playerIn);
|
||||
return new ContainerRepair(playerInventory, this.world, this.position);
|
||||
}
|
||||
|
||||
public String getGuiID()
|
||||
|
|
|
@ -16,32 +16,19 @@ import common.world.World;
|
|||
|
||||
public class ContainerRepair extends Container
|
||||
{
|
||||
/** Here comes out item you merged and/or renamed. */
|
||||
private IInventory outputSlot;
|
||||
|
||||
/**
|
||||
* The 2slots where you put your items in that you want to merge and/or rename.
|
||||
*/
|
||||
private IInventory inputSlots;
|
||||
private World theWorld;
|
||||
private BlockPos selfPosition;
|
||||
|
||||
/** The maximum cost of repairing/renaming in the anvil. */
|
||||
public int maximumCost;
|
||||
|
||||
/** determined by damage of input item and stackSize of repair materials */
|
||||
private int materialCost;
|
||||
// private String repairedItemName;
|
||||
|
||||
/** The player that has this container open. */
|
||||
private final EntityNPC thePlayer;
|
||||
|
||||
public ContainerRepair(InventoryPlayer playerInventory, World worldIn, EntityNPC player)
|
||||
public ContainerRepair(InventoryPlayer playerInventory, World worldIn)
|
||||
{
|
||||
this(playerInventory, worldIn, BlockPos.ORIGIN, player);
|
||||
this(playerInventory, worldIn, BlockPos.ORIGIN);
|
||||
}
|
||||
|
||||
public ContainerRepair(InventoryPlayer playerInventory, final World worldIn, final BlockPos blockPosIn, EntityNPC player)
|
||||
public ContainerRepair(InventoryPlayer playerInventory, final World worldIn, final BlockPos blockPosIn)
|
||||
{
|
||||
this.outputSlot = new InventoryCraftResult();
|
||||
this.inputSlots = new InventoryBasic("Repair", true, 2)
|
||||
|
@ -54,7 +41,6 @@ public class ContainerRepair extends Container
|
|||
};
|
||||
this.selfPosition = blockPosIn;
|
||||
this.theWorld = worldIn;
|
||||
this.thePlayer = player;
|
||||
this.addSlotToContainer(new Slot(this.inputSlots, 0, 27, 47) {
|
||||
public boolean canEditItem() {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue