@Override
public void doRenderLayer(AbstractClientPlayer entity, float limbSwing, float limbSwingAmount, float partialTicks, float ageInTicks, float netHeadYaw, float headPitch, float scale) {
if (uuid1.equals(entity.getUniqueID()) || uuid2.equals(entity.getUniqueID()) || uuid3.equals(entity.getUniqueID()) || uuid4.equals(entity.getUniqueID())) {
GlStateManager.pushMatrix();
Matrix4 matrix4 = new Matrix4();
matrix4.apply(new Rotation(MathHelper.torad * 180, new Vector3(1, 0, 0)));
matrix4.apply(new Scale(0.5));
matrix4.glApply();
if (entity.isSneaking()) {
GlStateManager.translate(0, -0.5, 0);
}
if (entity.isElytraFlying()) {
headPitch = -45;
}
GlStateManager.rotate(netHeadYaw, 0, -1, 0);
GlStateManager.rotate(headPitch, 1, 0, 0);
GlStateManager.translate(0, 1, 0);
RenderTileEnderTank.renderTank(CCRenderState.instance(), 0, (float) (MathHelper.torad * 90F), new Frequency(), -0.5, 0, -0.5, 0);
FluidStack fluidStack = FluidUtils.water.copy();
float bob = 0.45F + RenderUtils.getPearlBob(ClientUtils.getRenderTime()) * 2;
fluidStack.amount = (int) MathHelper.map(bob, 0.2, 0.6, 1000, 14000);
RenderTileEnderTank.renderLiquid(fluidStack, -0.5, 0, -0.5);
GlStateManager.popMatrix();
}
}