fix textures
This commit is contained in:
parent
6fb9ded711
commit
b5e5cb0444
74 changed files with 60 additions and 56 deletions
|
@ -1176,21 +1176,22 @@ public class Client implements IThreadListener {
|
|||
if(block != Blocks.air) {
|
||||
desc = block.getDisplay();
|
||||
if(block.getMiningTool() != null)
|
||||
line2 = "Werkzeug: " + block.getMiningTool().getDisplay() + (block.getMiningTool().isLevelled() ? "Level " + (block.getMiningLevel() + 1) : "");
|
||||
line2 = Color.BLUE + "Werkzeug" + Color.DARK_GRAY + ": " + Color.GREEN + block.getMiningTool().getDisplay() + (block.getMiningTool().isLevelled() ? Color.ORK + " Level " + Color.DARK_GREEN + (block.getMiningLevel() + 1) : "");
|
||||
}
|
||||
}
|
||||
else if(this.pointed != null && this.pointed.type == ObjectType.ENTITY && this.pointed.entity != null) {
|
||||
Entity entity = this.pointed.entity;
|
||||
desc = entity.getName();
|
||||
if(entity instanceof EntityLiving living) {
|
||||
line1 = living.formatStats();
|
||||
line1 = living.formatStatsFull();
|
||||
}
|
||||
line2 = Color.CYAN + EntityRegistry.getEntityName(EntityRegistry.getEntityString(entity));
|
||||
}
|
||||
if(desc != null) {
|
||||
Drawing.drawRectBorder(this.fbX / 2 - 180, 20, 360, 60, 0xff6f6f6f, 0xff000000, 0xffafafaf, 0xff4f4f4f);
|
||||
Drawing.drawTextCentered(desc, this.fbX / 2, 24, 0xffffffff);
|
||||
if(line1 != null)
|
||||
Drawing.drawTextCentered(line1, this.fbX / 2, 80 - 4 - Font.YGLYPH * 2, 0xffffffff);
|
||||
Drawing.drawTextCentered(line1, this.fbX / 2, 80 - 4 - Font.YGLYPH * 2 - 2, 0xffffffff);
|
||||
if(line2 != null)
|
||||
Drawing.drawTextCentered(line2, this.fbX / 2, 80 - 4 - Font.YGLYPH, 0xffffffff);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue