Carrot is not fruit (#27)

* Carrot is not fruit

* updateBuildScript & spotlessApply
This commit is contained in:
miozune authored and GitHub committed 2022-08-25 14:10:35 +02:00
1 parent 6973dbc80d
commit c5c3aee2fb
1345 files changed
+92079 -90006

No files matched your search

@@ -5,44 +5,44 @@
******************************************************************************/
package forestry.api.multiblock;
import net.minecraft.util.ChunkCoordinates;
import com.mojang.authlib.GameProfile;
import net.minecraft.util.ChunkCoordinates;
/**
* Basic interface for a multiblock machine component.
* Implemented by TileEntities.
*/
public interface IMultiblockComponent {
/**
* Returns the location of this tile entity in the world.
* @return ChunkCoordinates set to the location of this tile entity in the world.
*/
ChunkCoordinates getCoordinates();
/**
* @return the gameProfile of the player who owns this single component (not the entire multiblock)
*/
GameProfile getOwner();
/**
* Returns the location of this tile entity in the world.
* @return ChunkCoordinates set to the location of this tile entity in the world.
*/
ChunkCoordinates getCoordinates();
/**
* @return the multiblock logic for this part
*/
IMultiblockLogic getMultiblockLogic();
/**
* @return the gameProfile of the player who owns this single component (not the entire multiblock)
*/
GameProfile getOwner();
/**
* 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.
* @param multiblockController The controller to which this part is being assembled.
*/
void onMachineAssembled(IMultiblockController multiblockController, ChunkCoordinates minCoord, ChunkCoordinates maxCoord);
/**
* @return the multiblock logic for this part
*/
IMultiblockLogic getMultiblockLogic();
/**
* Called when the machine is broken for game reasons, e.g. a player removed a block
* or an explosion occurred.
*/
void onMachineBroken();
/**
* 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.
* @param multiblockController The controller to which this part is being assembled.
*/
void onMachineAssembled(
IMultiblockController multiblockController, ChunkCoordinates minCoord, ChunkCoordinates maxCoord);
/**
* Called when the machine is broken for game reasons, e.g. a player removed a block
* or an explosion occurred.
*/
void onMachineBroken();
}