Files

1.8 KiB

UIComponent.y

← UIComponent · ← Master

Parça 7/7 · önceki

Update delay allows to limit how frequently data gets sent from the client to the hanlder script.

// Assuming that ui is a IMappetUIBuilder

// Change text box's update delay to 1 second meaning // that a second after user didn't type anything into // the text box it will send all the data to the handler script ui.textbox().id("name").updateDelay(1000);

getDefaultUpdateDelay

protected int getDefaultUpdateDelay()

apply

protected GuiElement apply(GuiElement element, UIContext context)

applyKeybinds

protected GuiElement applyKeybinds(GuiElement element, UIContext context)

isDataReserved

protected boolean isDataReserved()

resetContext

protected void resetContext(GuiElement element, UIContext context)

createContext

protected void createContext(GuiSimpleContextMenu menu, GuiElement element, UIContext context)

change

protected void change(java.lang.String... properties)

clearChanges

public void clearChanges()

getChanges

public java.util.Set<java.lang.String> getChanges()

handleChanges

public void handleChanges(UIContext context, NBTTagCompound changes, GuiElement element)

applyProperty

protected void applyProperty(UIContext context, java.lang.String key, GuiElement element)

create

public abstract GuiElement create(Minecraft mc, UIContext context)

populateData

public void populateData(NBTTagCompound tag)

getChildComponents

public java.util.List getChildComponents()

serializeNBT

public NBTTagCompound serializeNBT()

serializeNBT

public void serializeNBT(NBTTagCompound tag)

deserializeNBT

public void deserializeNBT(NBTTagCompound tag)