mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
also holy shit the whitespace changes, intelliJ wanted to optimize the imports and refactored a ton of whitespace in the process.
26 lines
674 B
Java
26 lines
674 B
Java
package com.hbm.tileentity;
|
|
|
|
import net.minecraftforge.fluids.FluidTank;
|
|
|
|
public abstract class TileEntityTickingBase extends TileEntityLoadedBase {
|
|
|
|
public TileEntityTickingBase() { }
|
|
|
|
public abstract String getInventoryName();
|
|
|
|
public int getGaugeScaled(int i, FluidTank tank) {
|
|
return tank.getFluidAmount() * i / tank.getCapacity();
|
|
}
|
|
|
|
//abstracting this method forces child classes to implement it
|
|
//so i don't have to remember the fucking method name
|
|
//was it update? onUpdate? updateTile? did it have any args?
|
|
//shit i don't know man
|
|
@Override
|
|
public abstract void updateEntity();
|
|
|
|
@Deprecated
|
|
public void handleButtonPacket(int value, int meta) { }
|
|
|
|
}
|