@ParametersAreNonnullByDefault public final class IntegerBlockTrait extends BlockTrait<Integer>
name, onlySerialize, possibleValues, valueClass, vanillaName| Modifier and Type | Method and Description |
|---|---|
static IntegerBlockTrait |
from(String name) |
static IntegerBlockTrait |
from(String name,
int length) |
static IntegerBlockTrait |
from(String name,
int start,
int end) |
static IntegerBlockTrait |
from(String name,
int start,
int end,
int defaultValue) |
static IntegerBlockTrait |
from(String name,
String vanillaName,
int start,
int end,
int defaultValue) |
static IntegerBlockTrait |
from(String name,
String vanillaName,
int start,
int end,
int defaultValue,
boolean onlySerialize) |
Integer |
getDefaultValue() |
int |
getIndex(int value) |
int |
getIndex(Object value) |
IntRange |
getRange() |
Integer |
parseStorageValue(Object value) |
Integer |
parseValue(String text) |
getPossibleValues, getVanillaName, isOnlySerialize, testValue, toStringpublic static IntegerBlockTrait from(String name)
public static IntegerBlockTrait from(String name, int length)
public static IntegerBlockTrait from(String name, int start, int end)
public static IntegerBlockTrait from(String name, int start, int end, int defaultValue)
public static IntegerBlockTrait from(String name, @Nullable String vanillaName, int start, int end, int defaultValue)
public static IntegerBlockTrait from(String name, @Nullable String vanillaName, int start, int end, int defaultValue, boolean onlySerialize)
public Integer getDefaultValue()
getDefaultValue in class BlockTrait<Integer>public int getIndex(Object value)
getIndex in class BlockTrait<Integer>public int getIndex(int value)
public IntRange getRange()
public Integer parseValue(String text)
parseValue in class BlockTrait<Integer>public Integer parseStorageValue(Object value)
parseStorageValue in class BlockTrait<Integer>Copyright © 2021. All rights reserved.