use of mathax.client.systems.hud.HudRenderer in project Client by MatHax.
the class BedHud method render.
@Override
public void render(HudRenderer renderer) {
double x = box.getX();
double y = box.getY();
if (isInEditor())
RenderUtils.drawItem(Items.RED_BED.getDefaultStack(), (int) x, (int) y, scale.get(), true);
else if (InvUtils.find(itemStack -> itemStack.getItem() instanceof BedItem).count() > 0)
RenderUtils.drawItem(new ItemStack(Items.RED_BED, InvUtils.find(itemStack -> itemStack.getItem() instanceof BedItem).count()), (int) x, (int) y, scale.get(), true);
}
Aggregations