java.lang.Object
com.github.minecraftschurlimods.arsmagicalegacy.api.data.OcculusTabBuilder

public class OcculusTabBuilder extends Object
  • Constructor Details

    • OcculusTabBuilder

      protected OcculusTabBuilder(net.minecraft.resources.ResourceLocation id)
  • Method Details

    • create

      public static OcculusTabBuilder create(net.minecraft.resources.ResourceLocation id)
      Parameters:
      id - The id for the new occulus tab.
      Returns:
      A builder for a new occulus tab.
    • getId

      public net.minecraft.resources.ResourceLocation getId()
      Returns:
      The id of the occulus tab.
    • setIndex

      @Contract("_ -> this") public OcculusTabBuilder setIndex(int index)
      Sets the index of the occulus tab.
      Parameters:
      index - The index to set.
      Returns:
      This builder, for chaining.
    • setStartX

      @Contract("_ -> this") public OcculusTabBuilder setStartX(int startX)
      Sets the initial X coordinate of the occulus tab.
      Parameters:
      startX - The initial X coordinate to set.
      Returns:
      This builder, for chaining.
    • setStartY

      @Contract("_ -> this") public OcculusTabBuilder setStartY(int startY)
      Sets the initial Y coordinate of the occulus tab.
      Parameters:
      startY - The initial Y coordinate to set.
      Returns:
      This builder, for chaining.
    • setWidth

      @Contract("_ -> this") public OcculusTabBuilder setWidth(int width)
      Sets the width of the occulus tab.
      Parameters:
      width - The width to set.
      Returns:
      This builder, for chaining.
    • setHeight

      @Contract("_ -> this") public OcculusTabBuilder setHeight(int height)
      Sets the height of the occulus tab.
      Parameters:
      height - The height to set.
      Returns:
      This builder, for chaining.
    • setBackground

      @Contract("_ -> this") public OcculusTabBuilder setBackground(net.minecraft.resources.ResourceLocation background)
      Sets the background of the occulus tab.
      Parameters:
      background - The background to set.
      Returns:
      This builder, for chaining.
    • setIcon

      @Contract("_ -> this") public OcculusTabBuilder setIcon(net.minecraft.resources.ResourceLocation icon)
      Sets the icon of the occulus tab.
      Parameters:
      icon - The icon to set.
      Returns:
      This builder, for chaining.
    • setRenderer

      @Contract("_ -> this") public OcculusTabBuilder setRenderer(Class<? extends OcculusTabRenderer> renderer)
      Sets the renderer class of the occulus tab.
      Parameters:
      renderer - The renderer class to set.
      Returns:
      This builder, for chaining.
    • setRenderer

      @Contract("_ -> this") public OcculusTabBuilder setRenderer(String renderer)
      Sets the renderer class of the occulus tab.
      Parameters:
      renderer - The renderer class to set.
      Returns:
      This builder, for chaining.
    • build

      @Contract("_ -> this") public OcculusTabBuilder build(Consumer<OcculusTabBuilder> consumer)
      Builds the occulus tab.
      Parameters:
      consumer - The consumer that will consume the builder.
      Returns:
      This builder, for chaining.