Skip to content

Commit

Permalink
fix rebase issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Nov 17, 2023
1 parent 6a3fdfb commit 407b55a
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@
import net.minecraft.world.World;
import net.minecraftforge.items.CapabilityItemHandler;
import net.minecraftforge.items.IItemHandler;
import net.minecraftforge.items.IItemHandlerModifiable;
import org.apache.commons.lang3.ArrayUtils;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.List;

Expand All @@ -41,7 +43,7 @@ public class MetaTileEntityCreativeChest extends MetaTileEntityQuantumChest {
private int itemsPerCycle = 1;
private int ticksPerCycle = 1;

private final ItemStackHandler handler;
private final GTItemStackHandler handler;

private boolean active;

Expand Down Expand Up @@ -187,19 +189,19 @@ public IItemHandler getTypeValue() {
return this.handler;
}

protected class CreativeItemStackHandler extends ItemStackHandler {
protected class CreativeItemStackHandler extends GTItemStackHandler {

CreativeItemStackHandler(int size) {
super(size);
super(MetaTileEntityCreativeChest.this, size);
}

@NotNull
@Nonnull
@Override
public ItemStack insertItem(int slot, @NotNull ItemStack stack, boolean simulate) {
public ItemStack insertItem(int slot, @Nonnull ItemStack stack, boolean simulate) {
return stack;
}

@NotNull
@Nonnull
@Override
public ItemStack extractItem(int slot, int amount, boolean simulate) {
ItemStack stack = super.getStackInSlot(slot);
Expand Down Expand Up @@ -243,7 +245,7 @@ public void setStackInSlot(int slot, ItemStack stack) {
this.onContentsChanged(slot);
}

@NotNull
@Nonnull
@Override
public ItemStack getStackInSlot(int slot) {
return super.getStackInSlot(0);
Expand Down

0 comments on commit 407b55a

Please sign in to comment.