Interface FluidIngredientKJS

All Superinterfaces:
FluidMatch, JsonSerializable, NBTSerializable, ReplacementMatch, WithCodec
All Known Implementing Classes:
FluidIngredientMixin

@RemapPrefixForJS("kjs$") public interface FluidIngredientKJS extends WithCodec, FluidMatch
  • Field Summary

    Fields inherited from interface dev.latvian.mods.kubejs.recipe.match.ReplacementMatch

    NONE
  • Method Summary

    Modifier and Type
    Method
    Description
    default com.mojang.serialization.Codec<?>
    getCodec(dev.latvian.mods.rhino.Context cx)
     
    default net.neoforged.neoforge.fluids.crafting.FluidIngredient
     
    default net.neoforged.neoforge.fluids.crafting.SizedFluidIngredient
    kjs$withAmount(int amount)
     
    default boolean
    matches(RecipeMatchContext cx, net.neoforged.neoforge.fluids.crafting.FluidIngredient in, boolean exact)
     
    default boolean
    matches(RecipeMatchContext cx, net.neoforged.neoforge.fluids.FluidStack s, boolean exact)
     

    Methods inherited from interface dev.latvian.mods.kubejs.util.WithCodec

    toJson, toNBT
  • Method Details

    • kjs$self

      default net.neoforged.neoforge.fluids.crafting.FluidIngredient kjs$self()
    • getCodec

      default com.mojang.serialization.Codec<?> getCodec(dev.latvian.mods.rhino.Context cx)
      Specified by:
      getCodec in interface WithCodec
    • kjs$withAmount

      default net.neoforged.neoforge.fluids.crafting.SizedFluidIngredient kjs$withAmount(int amount)
    • matches

      default boolean matches(RecipeMatchContext cx, net.neoforged.neoforge.fluids.FluidStack s, boolean exact)
      Specified by:
      matches in interface FluidMatch
    • matches

      default boolean matches(RecipeMatchContext cx, net.neoforged.neoforge.fluids.crafting.FluidIngredient in, boolean exact)
      Specified by:
      matches in interface FluidMatch