Interface IMultiblockComponent

All Known Subinterfaces:
IAlvearyComponent<T>, IAlvearyComponent.Active<T>, IAlvearyComponent.BeeListener<T>, IAlvearyComponent.BeeModifier<T>, IAlvearyComponent.Climatiser<T>, IFarmComponent<T>, IFarmComponent.Active, IFarmComponent.Listener
All Known Implementing Classes:
MultiblockTileEntityBase

public interface IMultiblockComponent
Basic interface for a multiblock machine component. Implemented by TileEntities.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    A component with a separate inventory, like the Alveary Swarmer or Alveary Sieve.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.core.BlockPos
    Returns the location of this tile entity in the world.
     
    com.mojang.authlib.GameProfile
     
    void
    onMachineAssembled(IMultiblockController multiblockController, net.minecraft.core.BlockPos minCoord, net.minecraft.core.BlockPos maxCoord)
    Called when a machine is fully assembled from the disassembled state, meaning it was constructed by a player/entity action, not by chunks loading.
    void
    Called when the machine is broken for game reasons, e.g.
  • Method Details

    • getCoordinates

      net.minecraft.core.BlockPos getCoordinates()
      Returns the location of this tile entity in the world.
      Returns:
      ChunkCoordinates set to the location of this tile entity in the world.
    • getOwner

      @Nullable com.mojang.authlib.GameProfile getOwner()
      Returns:
      the gameProfile of the player who owns this single component (not the entire multiblock)
    • getMultiblockLogic

      IMultiblockLogic getMultiblockLogic()
      Returns:
      the multiblock logic for this part
    • onMachineAssembled

      void onMachineAssembled(IMultiblockController multiblockController, net.minecraft.core.BlockPos minCoord, net.minecraft.core.BlockPos maxCoord)
      Called when a machine is fully assembled from the disassembled state, meaning it was constructed by a player/entity action, not by chunks loading. Note that, for non-square machines, the min/max coordinates may not actually be part of the machine! They form an outer bounding box for the whole machine itself.
      Parameters:
      multiblockController - The controller to which this part is being assembled.
    • onMachineBroken

      void onMachineBroken()
      Called when the machine is broken for game reasons, e.g. a player removed a block or an explosion occurred.