@Override public int getHeight() { return style.getHeight(); }
private static void renderEntity(IEntityStyle style, int x, int y, Entity entity) { float height = entity.height; height = (float) ((height - 1) * .7 + 1); float s = style.getScale() * ((style.getHeight() * 14.0f / 25) / height); RenderHelper.renderEntity(entity, x, y, s); }
@Override public void toBytes(ByteBuf buf) { NetworkTools.writeString(buf, entityName); buf.writeInt(style.getWidth()); buf.writeInt(style.getHeight()); buf.writeFloat(style.getScale()); if (entityNBT != null) { buf.writeBoolean(true); NetworkTools.writeNBT(buf, entityNBT); } else { buf.writeBoolean(false); } if (playerID != null) { buf.writeBoolean(true); buf.writeInt(playerID); } else { buf.writeBoolean(false); } }