use of gregtech.common.pipelike.fluidpipe.FluidPipeType in project GregTech by GregTechCE.
the class FluidPipeRenderer method getParticleTexture.
public Pair<TextureAtlasSprite, Integer> getParticleTexture(IPipeTile<FluidPipeType, FluidPipeProperties> tileEntity) {
if (tileEntity == null) {
return Pair.of(TextureUtils.getMissingSprite(), 0xFFFFFF);
}
FluidPipeType fluidPipeType = tileEntity.getPipeType();
Material material = ((TileEntityFluidPipe) tileEntity).getPipeMaterial();
if (fluidPipeType == null || material == null) {
return Pair.of(TextureUtils.getMissingSprite(), 0xFFFFFF);
}
TextureAtlasSprite atlasSprite = pipeTextures.get(fluidPipeType).sideTexture;
int pipeColor = getPipeColor(material, tileEntity.getInsulationColor());
return Pair.of(atlasSprite, pipeColor);
}
Aggregations