Class MdxAttrs

java.lang.Object
guideme.compiler.tags.MdxAttrs

public final class MdxAttrs extends Object
utilities for dealing with attributes of MdxJsxElementFields.
  • Method Details

    • getRequiredId

      @Nullable public static @Nullable net.minecraft.resources.ResourceLocation getRequiredId(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el, String attribute)
    • getRequiredBlockAndId

      @Nullable public static @Nullable org.apache.commons.lang3.tuple.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.world.level.block.Block> getRequiredBlockAndId(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el, String attribute)
    • getRequiredItemAndId

      @Nullable public static @Nullable org.apache.commons.lang3.tuple.Pair<net.minecraft.resources.ResourceLocation,net.minecraft.world.item.Item> getRequiredItemAndId(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el, String attribute)
    • getRequiredItem

      public static net.minecraft.world.item.Item getRequiredItem(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el, String attribute)
    • getFloat

      public static float getFloat(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el, String name, float defaultValue)
    • getVector3

      @Contract("_, _, _, _, !null -> !null") @Nullable public static @Nullable org.joml.Vector3f getVector3(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el, String name, @Nullable @Nullable org.joml.Vector3fc defaultValue)
    • getVector2

      @Contract("_, _, _, _, !null -> !null") @Nullable public static @Nullable org.joml.Vector2f getVector2(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el, String name, @Nullable @Nullable org.joml.Vector2fc defaultValue)
    • getInt

      public static int getInt(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el, String name, int defaultValue)
    • getEnum

      @Nullable public static <T extends Enum<T> & net.minecraft.util.StringRepresentable> T getEnum(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el, String name, T defaultValue)
    • applyBlockStateProperties

      public static net.minecraft.world.level.block.state.BlockState applyBlockStateProperties(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el, net.minecraft.world.level.block.state.BlockState state)
    • getPos

      public static net.minecraft.core.BlockPos getPos(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el)
    • getColor

      public static ColorValue getColor(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el, String name, ColorValue defaultColor)
    • getBoolean

      public static boolean getBoolean(PageCompiler compiler, LytErrorSink errorSink, guideme.libs.mdast.mdx.model.MdxJsxElementFields el, String name, boolean defaultValue)