public interface IFarmHousing extends IErrorLogicSource, IExtentCache
| Modifier and Type | Method and Description |
|---|---|
default void |
addPendingProduce(net.minecraft.item.ItemStack stack) |
default boolean |
canPlantSoil(boolean manual) |
boolean |
doWork() |
net.minecraft.util.math.Vec3i |
getArea() |
net.minecraft.util.math.BlockPos |
getCoords() |
default net.minecraft.util.math.BlockPos |
getFarmCorner(FarmDirection direction) |
IFarmInventory |
getFarmInventory() |
IFarmLogic |
getFarmLogic(FarmDirection direction) |
net.minecraft.util.math.Vec3i |
getOffset() |
int |
getStoredFertilizerScaled(int scale) |
boolean |
hasLiquid(net.minecraftforge.fluids.FluidStack liquid) |
default boolean |
isSquare() |
default 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)
Deprecated.
TODO remove this method in 1.13
|
default boolean |
plantGermling(IFarmable farmable,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos,
FarmDirection direction)
Callback for
IFarmLogics to plant a sapling, seed, germling, stem. |
void |
removeLiquid(net.minecraftforge.fluids.FluidStack liquid) |
void |
resetFarmLogic(FarmDirection direction) |
void |
setFarmLogic(FarmDirection direction,
IFarmLogic logic) |
getErrorLogiccleanExtents, getExtents, getValidExtent, getValidPosition, increaseExtent, setExtentsnet.minecraft.util.math.BlockPos getCoords()
net.minecraft.util.math.Vec3i getArea()
net.minecraft.util.math.Vec3i getOffset()
boolean doWork()
boolean hasLiquid(net.minecraftforge.fluids.FluidStack liquid)
void removeLiquid(net.minecraftforge.fluids.FluidStack liquid)
@Deprecated boolean plantGermling(IFarmable farmable, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos)
IFarmLogics 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.default boolean plantGermling(IFarmable farmable, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, FarmDirection direction)
IFarmLogics 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.default boolean isValidPlatform(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
default boolean isSquare()
default boolean canPlantSoil(boolean manual)
IFarmInventory getFarmInventory()
void setFarmLogic(FarmDirection direction, IFarmLogic logic)
void resetFarmLogic(FarmDirection direction)
IFarmLogic getFarmLogic(FarmDirection direction)
int getStoredFertilizerScaled(int scale)
default void addPendingProduce(net.minecraft.item.ItemStack stack)
default net.minecraft.util.math.BlockPos getFarmCorner(FarmDirection direction)