Interface ILogicProgrammerElementType<E extends ILogicProgrammerElement>

All Known Implementing Classes:
OperatorLPElementType, SingleLPElementType, ValueTypeLPElementType

public interface ILogicProgrammerElementType<E extends ILogicProgrammerElement>
Indicates a type of logic programmer element. This creates one or more ILogicProgrammerElement. Must be registered in ILogicProgrammerElementTypeRegistry.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    getByName(net.minecraft.resources.ResourceLocation name)
    Get the element from the given name.
    net.minecraft.resources.ResourceLocation
    getName(E element)
    Get the name from given element, no need to namespace.
    net.minecraft.resources.ResourceLocation
     
  • Method Details

    • getByName

      E getByName(net.minecraft.resources.ResourceLocation name)
      Get the element from the given name.
      Parameters:
      name - The name, already namespaced for this type.
      Returns:
      The element.
    • getName

      net.minecraft.resources.ResourceLocation getName(E element)
      Get the name from given element, no need to namespace.
      Parameters:
      element - The element.
      Returns:
      The unique name.
    • getUniqueName

      net.minecraft.resources.ResourceLocation getUniqueName()
      Returns:
      Unique name.
    • createElements

      List<E> createElements()
      Returns:
      All the elements this type can have.