java.lang.Object
org.cloudburstmc.api.block.trait.BlockTrait<Integer>
org.cloudburstmc.api.block.trait.IntegerBlockTrait
-
Field Summary
Fields inherited from class org.cloudburstmc.api.block.trait.BlockTrait
name, onlySerialize, possibleValues, valueClass, vanillaName -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegerBlockTraitstatic IntegerBlockTraitstatic IntegerBlockTraitstatic IntegerBlockTraitstatic IntegerBlockTraitstatic IntegerBlockTraitfrom(String name, @Nullable String vanillaName, int start, int end, int defaultValue, boolean onlySerialize)intgetIndex(int value)intgetRange()parseStorageValue(Object value)parseValue(String text)Methods inherited from class org.cloudburstmc.api.block.trait.BlockTrait
getPossibleValues, getVanillaName, isOnlySerialize, testValue, toString
-
Method Details
-
from
-
from
-
from
-
from
-
from
public static IntegerBlockTrait from(String name, @Nullable String vanillaName, int start, int end, int defaultValue) -
from
public static IntegerBlockTrait from(String name, @Nullable String vanillaName, int start, int end, int defaultValue, boolean onlySerialize) -
getDefaultValue
- Specified by:
getDefaultValuein classBlockTrait<Integer>
-
getIndex
- Specified by:
getIndexin classBlockTrait<Integer>
-
getIndex
public int getIndex(int value) -
getRange
-
parseValue
- Specified by:
parseValuein classBlockTrait<Integer>
-
parseStorageValue
- Specified by:
parseStorageValuein classBlockTrait<Integer>
-