Package forestry.api.multiblock
Interface IMultiblockController
- All Known Subinterfaces:
IAlvearyController,IFarmController
public interface IMultiblockController
IMultiblockController is used to handle the assembly of Multiblocks.
This class is created and updated by IMultiblockLogic and Forestry.
This is a minimal interface to hide the ugly details from the multiblock tile entities.
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.core.BlockPosbooleanvoidCall to force the controller to check the multiblock's validity.
-
Method Details
-
isAssembled
boolean isAssembled()- Returns:
- True if this multiblock machine is considered assembled and ready to go.
-
reassemble
void reassemble()Call to force the controller to check the multiblock's validity. Use when important conditions around the multiblock change (i.e. Alveary slabs are removed and the alveary block detects it's neighbor changed) Changes to multiblock components are handled automatically and should not call this. -
getLastValidationError
- Returns:
- A string representing the last error encountered when trying to assemble this multiblock, or null if there is no error.
-
getLastValidationErrorPosition
@Nullable net.minecraft.core.BlockPos getLastValidationErrorPosition() -
getComponents
Collection<IMultiblockComponent> getComponents()- Returns:
- all the multiblock components attached to this controller
-