/* * Decompiled with CFR 0.152. */ package net.minecraft.client.renderer.feature; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.Font; import net.minecraft.client.renderer.MultiBufferSource; import net.minecraft.client.renderer.SubmitNodeCollection; import net.minecraft.client.renderer.SubmitNodeStorage; public class TextFeatureRenderer { public void render(SubmitNodeCollection nodeCollection, MultiBufferSource.BufferSource bufferSource) { Font font = Minecraft.getInstance().font; for (SubmitNodeStorage.TextSubmit textSubmit : nodeCollection.getTextSubmits()) { if (textSubmit.outlineColor() == 0) { font.drawInBatch(textSubmit.string(), textSubmit.x(), textSubmit.y(), textSubmit.color(), textSubmit.dropShadow(), textSubmit.pose(), (MultiBufferSource)bufferSource, textSubmit.displayMode(), textSubmit.backgroundColor(), textSubmit.lightCoords()); continue; } font.drawInBatch8xOutline(textSubmit.string(), textSubmit.x(), textSubmit.y(), textSubmit.color(), textSubmit.outlineColor(), textSubmit.pose(), bufferSource, textSubmit.lightCoords()); } } }