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

Method Textfield

Minecraft-Utils/1.7.10/src/Textfield.java:30–38  ·  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

28 * @param maxStringLength The Max Length the Text of the Textfield can have.
29 */
30 public Textfield(int id, int x, int y, int width, int height, int maxStringLength) {
31 super(((Variables) MinecraftFactory.getVars()).getFontrenderer(), x, y, width, height);
32 this.id = id;
33 this.x = x;
34 this.y = y;
35 this.width = width;
36 this.height = height;
37 setMaxStringLength(maxStringLength);
38 }
39
40 /**
41 * 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