Class CharacterComponent

java.lang.Object
dev.latvian.mods.kubejs.recipe.component.SimpleRecipeComponent<Character>
dev.latvian.mods.kubejs.recipe.component.CharacterComponent
All Implemented Interfaces:
RecipeComponent<Character>

public class CharacterComponent extends SimpleRecipeComponent<Character>
  • Field Details

  • Constructor Details

  • Method Details

    • hasPriority

      public boolean hasPriority(RecipeMatchContext cx, Object from)
      Description copied from interface: RecipeComponent
      Declares whether this component should take priority when being considered by e.g. an EitherRecipeComponent during deserialization.
      Parameters:
      cx - Script context
      from - The object to be deserialized from
      Returns:
      Whether this component should take priority
    • isEmpty

      public boolean isEmpty(Character value)
      Description copied from interface: RecipeComponent
      Shallow empty check function
    • toString

      public String toString(OpsContainer ops, Character value)