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

Method getModel

common/buildcraft/transport/pipe/Pipe.java:287–297  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

285 }
286
287 @SideOnly(Side.CLIENT)
288 public PipeModelKey getModel() {
289 int[] sides = new int[6];
290 float[] mc = new float[6];
291 for (EnumFacing face : EnumFacing.VALUES) {
292 int i = face.ordinal();
293 sides[i] = behaviour.getTextureIndex(face);
294 mc[i] = connected.contains(face) ? 0.25f : 0;
295 }
296 return new PipeModelKey(definition, behaviour.getTextureIndex(null), sides, mc, colour);
297 }
298
299 @Override
300 public TileEntity getConnectedTile(EnumFacing side) {

Callers 5

readPayloadMethod · 0.95
getModelJSONMethod · 0.45
onTextureStitchMethod · 0.45
PipeAllCutoutKeyMethod · 0.45
PipeAllTranslucentKeyMethod · 0.45

Calls 2

containsMethod · 0.65
getTextureIndexMethod · 0.45

Tested by

no test coverage detected