remove anvil ICrafting (useless)

This commit is contained in:
Sen 2025-07-07 17:55:51 +02:00
parent 454e38d1ab
commit 987c76d2c5
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
5 changed files with 12 additions and 180 deletions

View file

@ -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()

View file

@ -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;