Made some more public fields either private or final.

This commit is contained in:
RainWarrior committed 2016-03-24 22:22:21 +03:00
1 parent 756c58d5cb
commit 75032ebf9c
32 files changed
+355 -331

No files matched your search

@@ -8,9 +8,9 @@ import net.minecraftforge.fml.common.eventhandler.Event;
public class FluidEvent extends Event
{
public final FluidStack fluid;
public final World world;
public final BlockPos pos;
private final FluidStack fluid;
private final World world;
private final BlockPos pos;
public FluidEvent(FluidStack fluid, World world, BlockPos pos)
{
@@ -19,6 +19,21 @@ public class FluidEvent extends Event
this.pos = pos;
}
public FluidStack getFluid()
{
return fluid;
}
public World getWorld()
{
return world;
}
public BlockPos getPos()
{
return pos;
}
/**
* Mods should fire this event when they move fluids around.
*
@@ -38,8 +53,8 @@ public class FluidEvent extends Event
*/
public static class FluidFillingEvent extends FluidEvent
{
public final IFluidTank tank;
public final int amount;
private final IFluidTank tank;
private final int amount;
public FluidFillingEvent(FluidStack fluid, World world, BlockPos pos, IFluidTank tank, int amount)
{
@@ -47,6 +62,16 @@ public class FluidEvent extends Event
this.tank = tank;
this.amount = amount;
}
public IFluidTank getTank()
{
return tank;
}
public int getAmount()
{
return amount;
}
}
/**
@@ -56,8 +81,8 @@ public class FluidEvent extends Event
*/
public static class FluidDrainingEvent extends FluidEvent
{
public final IFluidTank tank;
public final int amount;
private final IFluidTank tank;
private final int amount;
public FluidDrainingEvent(FluidStack fluid, World world, BlockPos pos, IFluidTank tank, int amount)
{
@@ -65,6 +90,16 @@ public class FluidEvent extends Event
this.amount = amount;
this.tank = tank;
}
public IFluidTank getTank()
{
return tank;
}
public int getAmount()
{
return amount;
}
}
/**