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,11 +5,10 @@
******************************************************************************/
package forestry.api.multiblock;
import forestry.api.core.INBTTagable;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import forestry.api.core.INBTTagable;
/**
* Multiblock Logic implements the basic logic for IMultiblockComponent tile entities.
* Instances must come from MultiblockManager.logicFactory, most of the implementation is hidden.
@@ -19,56 +18,56 @@ import forestry.api.core.INBTTagable;
*/
public interface IMultiblockLogic extends INBTTagable {
/**
* @return True if this block is connected to a multiblock controller. False otherwise.
*/
boolean isConnected();
/**
* @return True if this block is connected to a multiblock controller. False otherwise.
*/
boolean isConnected();
/**
* @return the multiblock controller for this logic
*/
IMultiblockController getController();
/**
* @return the multiblock controller for this logic
*/
IMultiblockController getController();
/* Updating and Synchronization */
/* Updating and Synchronization */
/**
* call on Tile.validate()
**/
void validate(World world, IMultiblockComponent part);
/**
* call on Tile.validate()
**/
void validate(World world, IMultiblockComponent part);
/**
* call on Tile.invalidate()
**/
void invalidate(World world, IMultiblockComponent part);
/**
* call on Tile.invalidate()
**/
void invalidate(World world, IMultiblockComponent part);
/**
* call on Tile.onChunkUnload()
**/
void onChunkUnload(World world, IMultiblockComponent part);
/**
* call on Tile.onChunkUnload()
**/
void onChunkUnload(World world, IMultiblockComponent part);
/**
* Writes data for client synchronization.
* Use this in Tile.getDescriptionPacket()
*/
void encodeDescriptionPacket(NBTTagCompound packetData);
/**
* Writes data for client synchronization.
* Use this in Tile.getDescriptionPacket()
*/
void encodeDescriptionPacket(NBTTagCompound packetData);
/**
* Reads data for client synchronization.
* Use this in Tile.onDataPacket()
*/
void decodeDescriptionPacket(NBTTagCompound packetData);
/**
* Reads data for client synchronization.
* Use this in Tile.onDataPacket()
*/
void decodeDescriptionPacket(NBTTagCompound packetData);
/**
* Read the logic's data from file.
* Use this in Tile.readFromNBT()
*/
@Override
void readFromNBT(NBTTagCompound nbttagcompound);
/**
* Read the logic's data from file.
* Use this in Tile.readFromNBT()
*/
@Override
void readFromNBT(NBTTagCompound nbttagcompound);
/**
* Write the logic's data to file.
* Use this in Tile.writeToNBT()
*/
@Override
void writeToNBT(NBTTagCompound nbttagcompound);
/**
* Write the logic's data to file.
* Use this in Tile.writeToNBT()
*/
@Override
void writeToNBT(NBTTagCompound nbttagcompound);
}