mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 12:09:39 +00:00
36 lines
1.2 KiB
Java
36 lines
1.2 KiB
Java
/*******************************************************************************
|
|
* 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.farming.multiblock;
|
|
|
|
import forestry.api.multiblock.IMultiblockLogicFarm;
|
|
import forestry.core.multiblock.MultiblockLogic;
|
|
import net.minecraft.world.World;
|
|
|
|
public class MultiblockLogicFarm extends MultiblockLogic<IFarmControllerInternal> implements IMultiblockLogicFarm {
|
|
public MultiblockLogicFarm() {
|
|
super(IFarmControllerInternal.class);
|
|
}
|
|
|
|
@Override
|
|
public IFarmControllerInternal getController() {
|
|
if (controller != null) {
|
|
return controller;
|
|
} else {
|
|
return FakeFarmController.instance;
|
|
}
|
|
}
|
|
|
|
@Override
|
|
public IFarmControllerInternal createNewController(World world) {
|
|
return new FarmController(world);
|
|
}
|
|
}
|