it compiles :D
This commit is contained in:
parent
500ff29dbd
commit
6b9f6cb4f8
142 changed files with 755 additions and 1724 deletions
|
@ -27,6 +27,7 @@ package techreborn.client.container;
|
|||
import net.minecraft.container.Slot;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.network.chat.TextComponent;
|
||||
import reborncore.client.gui.slots.SlotFilteredVoid;
|
||||
import reborncore.common.container.RebornContainer;
|
||||
import reborncore.common.util.Inventory;
|
||||
|
@ -38,7 +39,7 @@ public class ContainerDestructoPack extends RebornContainer {
|
|||
private Inventory<?> inv;
|
||||
|
||||
public ContainerDestructoPack(PlayerEntity player) {
|
||||
super(null);
|
||||
super(null, new TextComponent("destructopack"));
|
||||
this.player = player;
|
||||
inv = new Inventory<>(1, "destructopack", 64, null);
|
||||
buildContainer();
|
||||
|
|
|
@ -25,21 +25,21 @@
|
|||
package techreborn.client.container.builder.slot;
|
||||
|
||||
import net.minecraft.block.entity.FurnaceBlockEntity;
|
||||
import net.minecraft.inventory.Inventory;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.item.Items;
|
||||
|
||||
import reborncore.client.gui.slots.BaseSlot;
|
||||
|
||||
public class FurnaceFuelSlot extends BaseSlot {
|
||||
|
||||
public FurnaceFuelSlot(IItemHandler inventoryIn, int index, int xPosition, int yPosition) {
|
||||
public FurnaceFuelSlot(Inventory inventoryIn, int index, int xPosition, int yPosition) {
|
||||
super(inventoryIn, index, xPosition, yPosition);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canInsert(ItemStack stack)
|
||||
{
|
||||
return FurnaceBlockEntity.isItemFuel(stack) || isBucket(stack);
|
||||
return FurnaceBlockEntity.canUseAsFuel(stack) || isBucket(stack);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue