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 Details

    • asBoolean

      Group.IPropertyBuilder<Boolean> asBoolean(boolean defaultValue)
      Binds the property to a boolean state.
      Parameters:
      defaultValue - The baseline boolean state.
      Returns:
      The subsequent optional configuration step.
    • asInteger

      Group.IPropertyBuilder<Integer> asInteger(int defaultValue)
      Binds the property to an unbounded integer value.
      Parameters:
      defaultValue - The baseline integer state.
      Returns:
      The subsequent optional configuration step.
    • asInteger

      Group.IPropertyBuilder<Integer> asInteger(int defaultValue, int min, int max)
      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

      Group.IPropertyBuilder<Double> asDouble(double defaultValue)
      Binds the property to an unbounded double value.
      Parameters:
      defaultValue - The baseline double state.
      Returns:
      The subsequent optional configuration step.
    • asDouble

      Group.IPropertyBuilder<Double> asDouble(double defaultValue, double min, double max)
      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

      Group.IPropertyBuilder<Float> asFloat(float defaultValue)
      Binds the property to an unbounded float value.
      Parameters:
      defaultValue - The baseline float state.
      Returns:
      The subsequent optional configuration step.
    • asFloat

      Group.IPropertyBuilder<Float> asFloat(float defaultValue, float min, float max)
      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

      Group.IPropertyBuilder<Long> asLong(long defaultValue)
      Binds the property to an unbounded long value.
      Parameters:
      defaultValue - The baseline long state.
      Returns:
      The subsequent optional configuration step.
    • asLong

      Group.IPropertyBuilder<Long> asLong(long defaultValue, long min, long max)
      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

      Group.IPropertyBuilder<Integer> asRGBColor(int defaultValue)
      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

      Group.IPropertyBuilder<Integer> asARGBColor(int defaultValue)
      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

      Group.IPropertyBuilder<String> asString(String defaultValue)
      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.