Spaces:
Build error
Build error
File size: 870 Bytes
d46f4a3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
package com.mojang.blaze3d.font;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
@OnlyIn(Dist.CLIENT)
public interface SheetGlyphInfo {
int getPixelWidth();
int getPixelHeight();
void upload(int p_231092_, int p_231093_);
boolean isColored();
float getOversample();
default float getLeft() {
return this.getBearingLeft();
}
default float getRight() {
return this.getLeft() + (float)this.getPixelWidth() / this.getOversample();
}
default float getTop() {
return 7.0F - this.getBearingTop();
}
default float getBottom() {
return this.getTop() + (float)this.getPixelHeight() / this.getOversample();
}
default float getBearingLeft() {
return 0.0F;
}
default float getBearingTop() {
return 7.0F;
}
} |