MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / getContentsString

Method getContentsString

common/buildcraft/lib/fluids/Tank.java:165–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163 }
164
165 public String getContentsString() {
166 FluidStack fluidStack = getFluid();
167 if (fluidStack == null || fluidStack.amount <= 0) {
168 return "Empty";
169 }
170 return (fluidStack.amount / 1000.0) + "B of " + fluidStack.getLocalizedName();
171 }
172
173 public void writeToBuffer(ByteBuf buffer) {
174 NBTTagCompound tankData = new NBTTagCompound();

Callers 3

toStringMethod · 0.95
getDebugInfoMethod · 0.80
getDebugInfoMethod · 0.80

Calls 2

getFluidMethod · 0.45
getLocalizedNameMethod · 0.45

Tested by

no test coverage detected