MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / Textfield

Method Textfield

Minecraft-Utils/1.12/src/Textfield.java:28–33  ·  view source on GitHub ↗

Creates a new Textfield, using the original super constructor. @param id The id of the Textfield. Currently, only used, to identify textfield by iterating though all textfields. @param x The x-location of the Textfield. @param y The y-location of the Textfie

(int id, int x, int y, int width, int height, int maxStringLength)

Source from the content-addressed store, hash-verified

26 * @param maxStringLength The Max Length the Text of the Textfield can have.
27 */
28 public Textfield(int id, int x, int y, int width, int height, int maxStringLength) {
29 super(id, ((Variables) MinecraftFactory.getVars()).getFontrenderer(), x, y, width, height);
30 this.width = width;
31 this.height = height;
32 setMaxStringLength(maxStringLength);
33 }
34
35 /**
36 * Creates a new Textfield, using the original super constructor and 32 as max String length.

Callers

nothing calls this directly

Calls 3

getVarsMethod · 0.95
setMaxStringLengthMethod · 0.95
getFontrendererMethod · 0.45

Tested by

no test coverage detected