public class FakeFarmController extends FakeMultiblockController implements IFarmControllerInternal
| Modifier and Type | Field and Description |
|---|---|
static FakeFarmController |
instance |
| Modifier and Type | Method and Description |
|---|---|
void |
addPendingProduce(net.minecraft.item.ItemStack stack) |
void |
cleanExtents(FarmDirection direction)
Clears the cache for the given direction.
|
boolean |
doWork() |
net.minecraft.util.math.Vec3i |
getArea() |
net.minecraft.util.math.BlockPos |
getCoords() |
int |
getExtents(FarmDirection direction,
net.minecraft.util.math.BlockPos pos)
Gets the current extent for the given direction and position.
|
IFarmInventory |
getFarmInventory() |
IFarmLedgerDelegate |
getFarmLedgerDelegate() |
IFarmLogic |
getFarmLogic(FarmDirection direction) |
IInventoryAdapter |
getInternalInventory() |
net.minecraft.util.math.Vec3i |
getOffset() |
net.minecraft.item.ItemStack |
getSocket(int slot) |
int |
getSocketCount() |
ICircuitSocketType |
getSocketType() |
int |
getStoredFertilizerScaled(int scale) |
ITankManager |
getTankManager() |
java.lang.String |
getUnlocalizedType() |
boolean |
hasLiquid(net.minecraftforge.fluids.FluidStack liquid) |
boolean |
isValidPlatform(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
boolean |
plantGermling(IFarmable farmable,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Callback for
IFarmLogics to plant a sapling, seed, germling, stem. |
void |
removeLiquid(net.minecraftforge.fluids.FluidStack liquid) |
void |
resetFarmLogic(FarmDirection direction) |
void |
setExtents(FarmDirection direction,
net.minecraft.util.math.BlockPos pos,
int extend)
Sets the current extent for the given direction and position.
|
void |
setFarmLogic(FarmDirection direction,
IFarmLogic logic) |
void |
setSocket(int slot,
net.minecraft.item.ItemStack stack) |
_onAssimilated, assimilate, attachBlock, auditParts, checkForDisconnections, checkIfMachineIsWhole, decodeDescriptionPacket, detachAllBlocks, detachBlock, formatDescriptionPacket, getComponents, getErrorLogic, getExactHumidity, getExactTemperature, getHumidity, getLastValidationError, getLastValidationErrorPosition, getOwnerHandler, getPartsListString, getReferenceCoord, getTemperature, getWorldObj, isAssembled, isEmpty, onAssimilated, readFromNBT, readGuiData, reassemble, recalculateMinMaxCoords, shouldConsume, updateMultiblockEntity, writeGuiData, writeToNBTclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcanPlantSoil, getFarmCorner, isSquare, plantGermlinggetErrorLogicgetValidExtent, getValidPosition, increaseExtent_onAssimilated, assimilate, attachBlock, auditParts, checkForDisconnections, checkIfMachineIsWhole, decodeDescriptionPacket, detachAllBlocks, detachBlock, formatDescriptionPacket, getPartsListString, getReferenceCoord, getWorldObj, isEmpty, onAssimilated, recalculateMinMaxCoords, shouldConsume, updateMultiblockEntitygetComponents, getLastValidationError, getLastValidationErrorPosition, isAssembled, reassemblewriteToNBTreadFromNBTgetOwnerHandlergetExactHumidity, getExactTemperature, getHumidity, getTemperaturereadGuiData, writeGuiDatapublic static final FakeFarmController instance
public net.minecraft.util.math.BlockPos getCoords()
getCoords in interface IFarmHousingpublic net.minecraft.util.math.Vec3i getArea()
getArea in interface IFarmHousingpublic net.minecraft.util.math.Vec3i getOffset()
getOffset in interface IFarmHousingpublic boolean doWork()
doWork in interface IFarmHousingpublic boolean hasLiquid(net.minecraftforge.fluids.FluidStack liquid)
hasLiquid in interface IFarmHousingpublic void removeLiquid(net.minecraftforge.fluids.FluidStack liquid)
removeLiquid in interface IFarmHousingpublic boolean plantGermling(IFarmable farmable, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos)
IFarmHousingIFarmLogics to plant a sapling, seed, germling, stem.
Will remove the appropriate germling from the farm's inventory.
It's up to the logic to only call this on a valid location.plantGermling in interface IFarmHousingpublic IFarmInventory getFarmInventory()
getFarmInventory in interface IFarmHousingpublic void setFarmLogic(FarmDirection direction, IFarmLogic logic)
setFarmLogic in interface IFarmHousingpublic IFarmLogic getFarmLogic(FarmDirection direction)
getFarmLogic in interface IFarmHousingpublic void resetFarmLogic(FarmDirection direction)
resetFarmLogic in interface IFarmHousingpublic int getStoredFertilizerScaled(int scale)
getStoredFertilizerScaled in interface IFarmHousingpublic void addPendingProduce(net.minecraft.item.ItemStack stack)
addPendingProduce in interface IFarmHousingpublic int getSocketCount()
getSocketCount in interface ISocketablepublic net.minecraft.item.ItemStack getSocket(int slot)
getSocket in interface ISocketablepublic void setSocket(int slot,
net.minecraft.item.ItemStack stack)
setSocket in interface ISocketablepublic ICircuitSocketType getSocketType()
getSocketType in interface ISocketablepublic IFarmLedgerDelegate getFarmLedgerDelegate()
getFarmLedgerDelegate in interface IFarmControllerInternalpublic IInventoryAdapter getInternalInventory()
getInternalInventory in interface IFarmControllerInternalpublic ITankManager getTankManager()
getTankManager in interface IFarmControllerInternalpublic java.lang.String getUnlocalizedType()
getUnlocalizedType in interface IMultiblockControllerInternalpublic boolean isValidPlatform(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
isValidPlatform in interface IFarmHousingpublic int getExtents(FarmDirection direction, net.minecraft.util.math.BlockPos pos)
IExtentCachegetExtents in interface IExtentCachedirection - The direction of the farm logic.pos - The position the logic starts to operate onpublic void setExtents(FarmDirection direction, net.minecraft.util.math.BlockPos pos, int extend)
IExtentCachesetExtents in interface IExtentCachedirection - The direction of the farm logic.pos - The position the logic starts to operate onextend - The extentpublic void cleanExtents(FarmDirection direction)
IExtentCacheFor example used if the player remove the circuit from the farm.
cleanExtents in interface IExtentCachedirection - The direction that should be cleared