本文整理汇总了Java中net.minecraft.client.gui.GuiTextField.updateCursorCounter方法的典型用法代码示例。如果您正苦于以下问题:Java GuiTextField.updateCursorCounter方法的具体用法?Java GuiTextField.updateCursorCounter怎么用?Java GuiTextField.updateCursorCounter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类net.minecraft.client.gui.GuiTextField
的用法示例。
在下文中一共展示了GuiTextField.updateCursorCounter方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: updateScreen
import net.minecraft.client.gui.GuiTextField; //导入方法依赖的package包/类
@Override
public void updateScreen() {
super.updateScreen();
for (Gui control : this.controls) {
if (control instanceof GuiTextField) {
GuiTextField textField = (GuiTextField)control;
textField.updateCursorCounter();
}
}
}
示例2: updateScreen
import net.minecraft.client.gui.GuiTextField; //导入方法依赖的package包/类
@Override
public void updateScreen() {
super.updateScreen();
if (!ForgeHooks.canInteractWith(mc.thePlayer, inventorySlots)) {
mc.thePlayer.closeScreen();
}
for (GuiTextField f : textFields) {
f.updateCursorCounter();
}
}
示例3: updateScreen
import net.minecraft.client.gui.GuiTextField; //导入方法依赖的package包/类
@Override
public void updateScreen() { // http://www.minecraftforge.net/forum/index.php?topic=22378.0
super.updateScreen();
for (GuiTextField txt : txtBoxes) {
if (txt != null) {
txt.updateCursorCounter();
}
}
}
示例4: updateScreen
import net.minecraft.client.gui.GuiTextField; //导入方法依赖的package包/类
public void updateScreen()
{
targetTasksButton.setListSize(targetTasks.size());
tasksButton.setListSize(tasks.size());
if(aimedTranslation > currentTranslation)
currentTranslation += xSize/15;
if(aimedTranslation < currentTranslation)
currentTranslation -= xSize/15;
for(GuiTextField field : secondPartFields)
{
field.updateCursorCounter();
}
}
示例5: updateScreen
import net.minecraft.client.gui.GuiTextField; //导入方法依赖的package包/类
@Override
public void updateScreen() {
super.updateScreen();
for (final GuiButton button : this.buttonList) {
if (button instanceof GuiNumericField) {
final GuiNumericField numericField = (GuiNumericField) button;
numericField.updateCursorCounter();
}
}
for (final GuiTextField textField : this.textFields) {
textField.updateCursorCounter();
}
}
示例6: updateScreen
import net.minecraft.client.gui.GuiTextField; //导入方法依赖的package包/类
@Override
public void updateScreen() {
super.updateScreen();
for (GuiTextField text : textFields.values())
text.updateCursorCounter();
}
示例7: updateScreen
import net.minecraft.client.gui.GuiTextField; //导入方法依赖的package包/类
@Override
public void updateScreen() {
for (GuiTextField field : this.textfieldList) {
field.updateCursorCounter();
}
}
示例8: updateScreen
import net.minecraft.client.gui.GuiTextField; //导入方法依赖的package包/类
@Override
public void updateScreen() {
for (GuiTextField guiTextField : guiTextFields)
guiTextField.updateCursorCounter();
}