Package com.mojang.jtracy
Class Zone
java.lang.Object
com.mojang.jtracy.Zone
- All Implemented Interfaces:
AutoCloseable
-
Method Summary
-
Method Details
-
addText
Associate some text with this zone. Multiple texts can be added to the same zone.- Parameters:
text- Text to associate- Returns:
- This zone, for builder-style creation
-
setColor
Associate a specific color with this zone.Color should be in 0xRRGGBB style. A value of 0 means "no color", rather than black. Use (e.g.) 0x000001 for black. Only one color may be attached to the zone.
- Parameters:
color- Color to associate- Returns:
- This zone, for builder-style creation
-
addValue
Adds a value to this zone. Multiple values may be added to a zone.This is similar to adding a text with the specific value, but is optimised for numbers.
- Parameters:
value- Value to associate- Returns:
- This zone, for builder-style creation
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-