Class FunctionWithArguments

java.lang.Object
com.github.thedeathlycow.thermoo.api.temperature.status.v2.effect.FunctionWithArguments

public final class FunctionWithArguments extends Object
An object that stores a function ID and, optionally, its macro arguments, and handles logic for its execution.
  • Field Details

    • CODEC

      public static final com.mojang.serialization.MapCodec<FunctionWithArguments> CODEC
      The codec for this object.
  • Method Details

    • function

      public net.minecraft.commands.CacheableFunction function()
      The function to execute.
    • arguments

      public Optional<net.minecraft.nbt.CompoundTag> arguments()
      The macro arguments of the function.