Add charcoal pile

This commit is contained in:
Nedelosk committed 2016-05-24 15:20:21 +02:00
1 parent 939d35661b
commit c1e414b8f7
64 files changed
+2599 -83

No files matched your search

@@ -0,0 +1,43 @@
/*******************************************************************************
* Copyright 2011-2014 SirSengir
*
* This work (the API) is licensed under the "MIT" License, see LICENSE.txt for details.
******************************************************************************/
package forestry.api.multiblock;
import javax.annotation.Nonnull;
import com.mojang.authlib.GameProfile;
import forestry.api.arboriculture.EnumPileType;
import forestry.api.arboriculture.ITree;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
/**
* Needs to be implemented by TileEntities that want to be part of an charcoal pile.
* The sub-interfaces can be implemented to alter the operation of the charcoal pile.
* They are automatically detected and handled by the charcoal pile when they join its structure.
*/
public interface ICharcoalPileComponent<T extends IMultiblockLogicCharcoalPile> extends IMultiblockComponent {
@Override
T getMultiblockLogic();
@Nonnull
ITree getTree();
void setTree(@Nonnull ITree tree);
@Override
@Nonnull
GameProfile getOwner();
void setOwner(@Nonnull GameProfile owner);
EnumPileType getPileType();
@SideOnly(Side.CLIENT)
ITree getNextWoodPile();
}
@@ -0,0 +1,9 @@
package forestry.api.multiblock;
public interface ICharcoalPileController extends IMultiblockController{
boolean isActive();
void setActive(boolean active);
}
@@ -0,0 +1,21 @@
/*******************************************************************************
* Copyright (c) 2011-2014 SirSengir.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser Public License v3
* which accompanies this distribution, and is available at
* http://www.gnu.org/licenses/lgpl-3.0.txt
*
* Various Contributors including, but not limited to:
* SirSengir (original work), CovertJaguar, Player, Binnie, MysteriousAges
******************************************************************************/
package forestry.api.multiblock;
public interface IMultiblockLogicCharcoalPile extends IMultiblockLogic {
/**
* @return the multiblock controller for this logic
*/
@Override
ICharcoalPileController getController();
}