Interface ICircuitRegistration


public interface ICircuitRegistration
Handles registration of all circuits-related data in Forestry. Circuit socket types are not required to be registered, but should be kept as constants in a separate class like in ForestryCircuitSocketTypes.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    registerCircuit(String layoutId, net.minecraft.world.item.ItemStack stack, ICircuit circuit)
    Registers the circuit for this item when in the given circuit layout.
    void
    registerLayout(String layoutId, net.minecraft.resources.ResourceLocation socketType)
    Registers a new circuit layout.
  • Method Details

    • registerCircuit

      void registerCircuit(String layoutId, net.minecraft.world.item.ItemStack stack, ICircuit circuit)
      Registers the circuit for this item when in the given circuit layout.
      Parameters:
      layoutId - The unique ID of the circuit layout.
      stack - The item that should have this circuit (in base Forestry, always an electron tube).
      circuit - The circuit this item has in the layout.
    • registerLayout

      void registerLayout(String layoutId, net.minecraft.resources.ResourceLocation socketType)
      Registers a new circuit layout.
      Parameters:
      layoutId - The ID of the circuit layout.
      socketType - The socket type of the layout, which determines which machines will accept this layout.
      See Also: