Automatic code reformatting

This commit is contained in:
mezz committed 2016-12-22 16:53:55 -08:00
1 parent 9611ae08ae
commit 8cfafec6f9
672 files changed
+2462 -2985

No files matched your search

@@ -41,8 +41,9 @@ public interface IAlvearyComponent<T extends IMultiblockLogicAlveary> extends IM
interface Climatiser extends IAlvearyComponent {
/**
* Called every tick by the alveary.
*
* @param tickCount the number of ticks in the world
* @param alveary the climate controlled alveary
* @param alveary the climate controlled alveary
*/
void changeClimate(int tickCount, IClimateControlled alveary);
}
@@ -1,7 +1,7 @@
package forestry.api.multiblock;
public interface ICharcoalPileController extends IMultiblockController{
public interface ICharcoalPileController extends IMultiblockController {
boolean isActive();
void setActive(boolean active);
@@ -21,20 +21,20 @@ public interface IGreenhouseComponent<T extends IMultiblockLogicGreenhouse> exte
interface Listener extends IGreenhouseComponent {
IGreenhouseListener getGreenhouseListener();
}
interface ClimateControl extends IGreenhouseComponent, IClimateControlProvider {
@Override
IClimateControl getClimateControl();
}
interface Door extends IGreenhouseComponent {
}
interface Climatiser extends IGreenhouseComponent, IClimateSourceProvider {
IClimatiserDefinition getDefinition();
}
interface ButterflyHatch extends IGreenhouseComponent {
NonNullList<ItemStack> addCocoonLoot(IButterflyCocoon cocoon);
}
@@ -5,9 +5,8 @@
******************************************************************************/
package forestry.api.multiblock;
import java.util.List;
import javax.annotation.Nullable;
import java.util.List;
import forestry.api.climate.IClimateControl;
import forestry.api.climate.IClimateControlProvider;
@@ -18,20 +17,20 @@ import forestry.api.greenhouse.IGreenhouseHousing;
import forestry.api.greenhouse.IGreenhouseLogic;
public interface IGreenhouseController extends IMultiblockController, IGreenhouseHousing, ICamouflageHandler, IClimateControlProvider {
/**
* Handle change events.
*/
void onChange(EnumGreenhouseEventType type, Object event);
/**
* @return The logics of the greenhouse.
*/
List<IGreenhouseLogic> getLogics();
@Nullable
IClimateRegion getRegion();
@Override
IClimateControl getClimateControl();
@@ -7,18 +7,18 @@ package forestry.api.multiblock;
import javax.annotation.Nullable;
import net.minecraft.util.math.BlockPos;
import com.mojang.authlib.GameProfile;
import net.minecraft.util.math.BlockPos;
/**
* 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.
*/
BlockPos getCoordinates();
@@ -39,6 +39,7 @@ public interface IMultiblockComponent {
* 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, BlockPos minCoord, BlockPos maxCoord);
@@ -5,15 +5,14 @@
******************************************************************************/
package forestry.api.multiblock;
import forestry.api.core.INbtWritable;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import forestry.api.core.INbtWritable;
/**
* Multiblock Logic implements the basic logic for IMultiblockComponent tile entities.
* Instances must come from MultiblockManager.logicFactory, most of the implementation is hidden.
*
* <p>
* IMultiblockComponent tile entities must wire up the methods in the "Updating and Synchronization" section.
* As a starting point, you can use MultiblockTileEntityBase.
*/
@@ -17,5 +17,5 @@ public interface IMultiblockLogicCharcoalPile extends IMultiblockLogic {
*/
@Override
ICharcoalPileController getController();
}
@@ -13,8 +13,8 @@ public interface IMultiblockLogicFactory {
IMultiblockLogicAlveary createAlvearyLogic();
IMultiblockLogicFarm createFarmLogic();
IMultiblockLogicGreenhouse createGreenhouseLogic();
IMultiblockLogicCharcoalPile createCharcoalPileLogic();
}