Interface Group.ITypeStep
- Enclosing interface:
Group
public static interface Group.ITypeStep
Phase 2 of the fluent builder: Determines the fundamental data type, baseline state, and validation bounds.
-
Method Summary
Modifier and TypeMethodDescriptionasARGBColor(int defaultValue) Binds the property to an ARGB color integer.Group.IPropertyBuilder<net.minecraft.world.level.block.Block> asBlock(net.minecraft.world.level.block.Block defaultValue) Binds the property to a structural Block registry reference.Group.IPropertyBuilder<List<net.minecraft.world.level.block.Block>> Binds the property to a list of Block registry references.asBoolean(boolean defaultValue) Binds the property to a boolean state.asDouble(double defaultValue) Binds the property to an unbounded double value.asDouble(double defaultValue, double min, double max) Binds the property to a bounded double value.<E extends Enum<E>>
Group.IPropertyBuilder<E> asEnum(E defaultValue, com.mojang.serialization.Codec<E> codec) Binds the property to an enumerated type.asFloat(float defaultValue) Binds the property to an unbounded float value.asFloat(float defaultValue, float min, float max) Binds the property to a bounded float value.asInteger(int defaultValue) Binds the property to an unbounded integer value.asInteger(int defaultValue, int min, int max) Binds the property to a bounded integer value.Group.IPropertyBuilder<net.minecraft.world.item.Item> asItem(net.minecraft.world.item.Item defaultValue) Binds the property to an Item registry reference.Group.IPropertyBuilder<List<net.minecraft.world.item.Item>> Binds the property to a list of Item registry references.<E> Group.IPropertyBuilder<List<E>> Binds the property to a uniform list of elements.asLong(long defaultValue) Binds the property to an unbounded long value.asLong(long defaultValue, long min, long max) Binds the property to a bounded long value.asRGBColor(int defaultValue) Binds the property to an RGB color integer.Binds the property to a string literal.
-
Method Details
-
asBoolean
Binds the property to a boolean state.- Parameters:
defaultValue- The baseline boolean state.- Returns:
- The subsequent optional configuration step.
-
asInteger
Binds the property to an unbounded integer value.- Parameters:
defaultValue- The baseline integer state.- Returns:
- The subsequent optional configuration step.
-
asInteger
Binds the property to a bounded integer value.- Parameters:
defaultValue- The baseline integer state.min- The lower validation boundary.max- The upper validation boundary.- Returns:
- The subsequent optional configuration step.
-
asDouble
Binds the property to an unbounded double value.- Parameters:
defaultValue- The baseline double state.- Returns:
- The subsequent optional configuration step.
-
asDouble
Binds the property to a bounded double value.- Parameters:
defaultValue- The baseline double state.min- The lower validation boundary.max- The upper validation boundary.- Returns:
- The subsequent optional configuration step.
-
asFloat
Binds the property to an unbounded float value.- Parameters:
defaultValue- The baseline float state.- Returns:
- The subsequent optional configuration step.
-
asFloat
Binds the property to a bounded float value.- Parameters:
defaultValue- The baseline float state.min- The lower validation boundary.max- The upper validation boundary.- Returns:
- The subsequent optional configuration step.
-
asLong
Binds the property to an unbounded long value.- Parameters:
defaultValue- The baseline long state.- Returns:
- The subsequent optional configuration step.
-
asLong
Binds the property to a bounded long value.- Parameters:
defaultValue- The baseline long state.min- The lower validation boundary.max- The upper validation boundary.- Returns:
- The subsequent optional configuration step.
-
asRGBColor
Binds the property to an RGB color integer.- Parameters:
defaultValue- The baseline color state as a primitive integer.- Returns:
- The subsequent optional configuration step.
-
asARGBColor
Binds the property to an ARGB color integer.- Parameters:
defaultValue- The baseline color state as a primitive integer.- Returns:
- The subsequent optional configuration step.
-
asString
Binds the property to a string literal.- Parameters:
defaultValue- The baseline string state.- Returns:
- The subsequent optional configuration step.
-
asEnum
<E extends Enum<E>> Group.IPropertyBuilder<E> asEnum(E defaultValue, com.mojang.serialization.Codec<E> codec) Binds the property to an enumerated type.- Parameters:
defaultValue- The baseline enumeration state.codec- The serialization protocol for the enumeration.- Returns:
- The subsequent optional configuration step.
-
asList
<E> Group.IPropertyBuilder<List<E>> asList(List<E> defaultValue, com.mojang.serialization.Codec<E> elementCodec) Binds the property to a uniform list of elements.- Parameters:
defaultValue- The baseline list state.elementCodec- The serialization protocol for individual elements.- Returns:
- The subsequent optional configuration step.
-
asBlock
Group.IPropertyBuilder<net.minecraft.world.level.block.Block> asBlock(net.minecraft.world.level.block.Block defaultValue) Binds the property to a structural Block registry reference.- Parameters:
defaultValue- The baseline Block state.- Returns:
- The subsequent optional configuration step.
-
asItem
Group.IPropertyBuilder<net.minecraft.world.item.Item> asItem(net.minecraft.world.item.Item defaultValue) Binds the property to an Item registry reference.- Parameters:
defaultValue- The baseline Item state.- Returns:
- The subsequent optional configuration step.
-
asBlocks
Group.IPropertyBuilder<List<net.minecraft.world.level.block.Block>> asBlocks(List<net.minecraft.world.level.block.Block> defaultValue) Binds the property to a list of Block registry references.- Parameters:
defaultValue- The baseline Block list state.- Returns:
- The subsequent optional configuration step.
-
asItems
Group.IPropertyBuilder<List<net.minecraft.world.item.Item>> asItems(List<net.minecraft.world.item.Item> defaultValue) Binds the property to a list of Item registry references.- Parameters:
defaultValue- The baseline Item list state.- Returns:
- The subsequent optional configuration step.
-