Example usage for net.minecraftforge.fml.client.config IConfigElement getDefault

List of usage examples for net.minecraftforge.fml.client.config IConfigElement getDefault

Introduction

In this page you can find the example usage for net.minecraftforge.fml.client.config IConfigElement getDefault.

Prototype

Object getDefault();

Source Link

Document

[Property] Gets this property's default value.

Usage

From source file:com.kegare.bedrocklayer.client.config.CycleIntegerEntry.java

License:Minecraft Mod Public

public CycleIntegerEntry(GuiConfig owningScreen, GuiConfigEntries owningEntryList,
        IConfigElement configElement) {
    super(owningScreen, owningEntryList, configElement);
    this.beforeValue = NumberUtils.toInt(configElement.get().toString());
    this.defaultValue = NumberUtils.toInt(configElement.getDefault().toString());
    this.currentValue = beforeValue;
    this.btnValue.enabled = enabled();

    updateValueButtonText();/*  ww  w. j  a  v  a  2 s.c  o m*/
}