Package forestry.api.plugin
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 TypeMethodDescriptionvoidregisterCircuit(String layoutId, net.minecraft.world.item.ItemStack stack, ICircuit circuit) Registers the circuit for this item when in the given circuit layout.voidregisterLayout(String layoutId, net.minecraft.resources.ResourceLocation socketType) Registers a new circuit layout.
-
Method Details
-
registerCircuit
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
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:
-