public static class PipeEventFluid.PreMoveToCentre extends PipeEventFluid
PipeEventFluid.OnMoveToCentre, PipeEventFluid.PreMoveToCentre, PipeEventFluid.SideCheck, PipeEventFluid.TryInsert
Modifier and Type | Field and Description |
---|---|
int[] |
actuallyOffered
Array of
EnumFacing.getIndex() to the amount of fluid that the given side will actually offer to the
centre. |
net.minecraftforge.fluids.FluidStack |
fluid
The fluid that is being moved.
|
int |
totalAcceptable
The maximum amount of fluid that the centre pipe could accept.
|
int[] |
totalOffered
Array of
EnumFacing.getIndex() to the maximum amount of fluid that a given side can offer. |
flow
canBeCancelled, holder
Constructor and Description |
---|
PreMoveToCentre(IPipeHolder holder,
IFlowFluid flow,
net.minecraftforge.fluids.FluidStack fluid,
int totalAcceptable,
int[] totalOffered,
int[] actuallyOffered) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
checkStateForErrors()
Called after every event handler has received this pipe event, to pick up simple mistakes when implementing pipe
event handlers.
|
cancel, isCanceled
public final net.minecraftforge.fluids.FluidStack fluid
public final int totalAcceptable
public final int[] totalOffered
EnumFacing.getIndex()
to the maximum amount of fluid that a given side can offer. DO NOT
CHANGE THIS!public final int[] actuallyOffered
EnumFacing.getIndex()
to the amount of fluid that the given side will actually offer to the
centre. This should *never* be larger thanpublic PreMoveToCentre(IPipeHolder holder, IFlowFluid flow, net.minecraftforge.fluids.FluidStack fluid, int totalAcceptable, int[] totalOffered, int[] actuallyOffered)
public java.lang.String checkStateForErrors()
PipeEvent
checkStateForErrors
in class PipeEvent