Skip to content
Permalink
Browse files

- Updated

  • Loading branch information
CtrlAltDavid01 committed Jul 16, 2019
1 parent 0d2b1fa commit 035f2c3184050ed46b7079f29adf281a43e0db94
@@ -10,7 +10,6 @@
import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.math.BlockPos;
import net.minecraftforge.items.CapabilityItemHandler;
import net.minecraftforge.items.IItemHandler;

@@ -27,17 +26,6 @@ public ContainerLargeVessel(InventoryPlayer playerInv, TELargeVessel tile)
super(playerInv, tile, true);
}

@Nullable
public IItemHandler getLargeVesselInventory()
{
return tile.getCapability(CapabilityItemHandler.ITEM_HANDLER_CAPABILITY, null);
}

public boolean isLargeVesselSealed()
{
return tile.isSealed();
}

@Override
public void onButtonPress(int buttonID, @Nullable NBTTagCompound extraNBT)
{
@@ -76,9 +64,4 @@ protected void addContainerSlots()
}
}
}

public BlockPos getTilePos()
{
return tile.getPos();
}
}
@@ -1,9 +1,7 @@
package net.dries007.tfc.objects.inventory.fluid;
package net.dries007.tfc.objects.fluids.capability;

import net.minecraftforge.fluids.FluidTank;

import net.dries007.tfc.objects.inventory.capability.IFluidTankCallback;

public class FluidTankCallback extends FluidTank
{
private final IFluidTankCallback callback;
@@ -1,4 +1,4 @@
package net.dries007.tfc.objects.inventory.capability;
package net.dries007.tfc.objects.fluids.capability;

public interface IFluidTankCallback
{
@@ -20,7 +20,6 @@
public ItemStack getFiringResult(ItemStack input, Metal.Tier tier)
{
ItemStack output = new ItemStack(new BlockLargeVessel());
if (input.getHasSubtypes() && output.getHasSubtypes()) output.setItemDamage(input.getMetadata());
return output;
}

@@ -26,11 +26,11 @@
import net.dries007.tfc.network.PacketBarrelUpdate;
import net.dries007.tfc.objects.blocks.wood.BlockBarrel;
import net.dries007.tfc.objects.fluids.capability.FluidHandlerSided;
import net.dries007.tfc.objects.fluids.capability.FluidTankCallback;
import net.dries007.tfc.objects.fluids.capability.IFluidHandlerSidedCallback;
import net.dries007.tfc.objects.inventory.capability.IFluidTankCallback;
import net.dries007.tfc.objects.fluids.capability.IFluidTankCallback;
import net.dries007.tfc.objects.inventory.capability.IItemHandlerSidedCallback;
import net.dries007.tfc.objects.inventory.capability.ItemHandlerSidedWrapper;
import net.dries007.tfc.objects.inventory.fluid.FluidTankCallback;
import net.dries007.tfc.util.FluidTransferHelper;
import net.dries007.tfc.util.calendar.CalendarTFC;
import net.dries007.tfc.util.calendar.ICalendarFormatted;
@@ -151,7 +151,7 @@ public void onSeal()
if (!cap.getTraits().contains(CapabilityFood.PRESERVED))
{
cap.getTraits().add(CapabilityFood.PRESERVED);
cap.setCreationDate(CalendarTFC.PLAYER_TIME.getTicks() - (long)((CalendarTFC.PLAYER_TIME.getTicks() - cap.getCreationDate()) / CapabilityFood.PRESERVED.getDecayModifier()));
cap.setCreationDate(CalendarTFC.PLAYER_TIME.getTicks() - (long) ((CalendarTFC.PLAYER_TIME.getTicks() - cap.getCreationDate()) / CapabilityFood.PRESERVED.getDecayModifier()));
}
}
}
@@ -170,7 +170,7 @@ public void onUnseal()
if (cap != null)
{
cap.getTraits().remove(CapabilityFood.PRESERVED);
cap.setCreationDate(CalendarTFC.PLAYER_TIME.getTicks() - (long)((CalendarTFC.PLAYER_TIME.getTicks() - cap.getCreationDate()) * CapabilityFood.PRESERVED.getDecayModifier()));
cap.setCreationDate(CalendarTFC.PLAYER_TIME.getTicks() - (long) ((CalendarTFC.PLAYER_TIME.getTicks() - cap.getCreationDate()) * CapabilityFood.PRESERVED.getDecayModifier()));
}
}
}
@@ -186,12 +186,6 @@ public boolean isSealed()
return sealed;
}

@Override
public void setAndUpdateSlots(int slot)
{

}

/**
* Called on clients when this TileEntity received an update from the server on load.
*

0 comments on commit 035f2c3

Please sign in to comment.
You can’t perform that action at this time.