Class FluidSample
java.lang.Object
zombie.entity.components.fluids.FluidSample
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addFluid
(FluidInstance fluidInstance) static FluidSample
Alloc()
void
clear()
static FluidSample
combine
(FluidSample fluidSample1, FluidSample fluidSample2) combineWith
(FluidSample fluidSample2) copy()
float
getFluid
(int int0) getFluidInstance
(int int0) getFluidInstance
(Fluid fluid) float
getPercentage
(int int0) boolean
isEmpty()
boolean
static FluidSample
Load
(ByteBuffer byteBuffer, int int0) static FluidSample
Load
(FluidSample fluidSample, ByteBuffer byteBuffer, int int2) void
release()
protected static void
Release
(FluidSample fluidSample) static void
Save
(FluidSample fluidSample, ByteBuffer byteBuffer) void
scaleToAmount
(float float0) protected FluidSample
seal()
int
size()
-
Method Details
-
Alloc
-
Release
-
release
public void release() -
clear
public void clear() -
addFluid
-
seal
-
copy
-
isEmpty
public boolean isEmpty() -
isPureFluid
public boolean isPureFluid() -
getAmount
public float getAmount() -
size
public int size() -
getPercentage
public float getPercentage(int int0) -
getFluid
-
getFluidInstance
-
getFluidInstance
-
getPrimaryFluid
-
scaleToAmount
public void scaleToAmount(float float0) -
combine
-
combineWith
-
Save
- Throws:
IOException
-
Load
- Throws:
IOException
-
Load
public static FluidSample Load(FluidSample fluidSample, ByteBuffer byteBuffer, int int2) throws IOException - Throws:
IOException
-