public abstract class TilePlanter extends TilePowered implements IFarmHousing, IClimatised, ILiquidTankTile, IOwnedTile, IStreamableGui
powerMultiplier, speedMultiplier| Modifier | Constructor and Description |
|---|---|
protected |
TilePlanter(java.lang.String identifier) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPendingProduce(net.minecraft.item.ItemStack stack) |
boolean |
canPlantSoil(boolean manual) |
void |
cleanExtents(FarmDirection direction)
Clears the cache for the given direction.
|
abstract net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
createGermlingStacks() |
protected net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
createList(net.minecraft.item.ItemStack... stacks) |
abstract net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
createProductionStacks() |
abstract net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> |
createResourceStacks() |
boolean |
doWork() |
net.minecraft.util.math.Vec3i |
getArea() |
<T> T |
getCapability(net.minecraftforge.common.capabilities.Capability<T> capability,
net.minecraft.util.EnumFacing facing) |
net.minecraft.inventory.Container |
getContainer(net.minecraft.entity.player.EntityPlayer player,
int data) |
net.minecraft.util.math.BlockPos |
getCoords() |
float |
getExactHumidity() |
float |
getExactTemperature() |
int |
getExtents(FarmDirection direction,
net.minecraft.util.math.BlockPos pos)
Gets the current extent for the given direction and position.
|
net.minecraft.util.math.BlockPos |
getFarmCorner(FarmDirection direction) |
IFarmInventory |
getFarmInventory() |
IFarmLedgerDelegate |
getFarmLedgerDelegate() |
IFarmLogic |
getFarmLogic() |
IFarmLogic |
getFarmLogic(FarmDirection direction) |
net.minecraft.client.gui.inventory.GuiContainer |
getGui(net.minecraft.entity.player.EntityPlayer player,
int data) |
EnumHumidity |
getHumidity() |
net.minecraft.util.math.Vec3i |
getOffset() |
IOwnerHandler |
getOwnerHandler() |
int |
getStoredFertilizerScaled(int scale) |
ITankManager |
getTankManager() |
EnumTemperature |
getTemperature() |
net.minecraft.nbt.NBTTagCompound |
getUpdateTag() |
boolean |
hasCapability(net.minecraftforge.common.capabilities.Capability<?> capability,
net.minecraft.util.EnumFacing facing) |
boolean |
hasLiquid(net.minecraftforge.fluids.FluidStack liquid) |
boolean |
hasWork() |
void |
invalidate() |
boolean |
isSquare() |
boolean |
isValidPlatform(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos) |
boolean |
plantGermling(IFarmable germling,
net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
Callback for
IFarmLogics to plant a sapling, seed, germling, stem. |
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 |
readFromNBT(net.minecraft.nbt.NBTTagCompound data) |
void |
readGuiData(PacketBufferForestry data) |
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 |
setManual(boolean manual) |
void |
setPos(net.minecraft.util.math.BlockPos posIn) |
protected net.minecraft.util.math.BlockPos |
translateWithOffset(net.minecraft.util.math.BlockPos pos,
FarmDirection farmDirection,
int step) |
protected void |
updateServerSide() |
protected boolean |
workCycle() |
void |
writeGuiData(PacketBufferForestry data) |
net.minecraft.nbt.NBTTagCompound |
writeToNBT(net.minecraft.nbt.NBTTagCompound data) |
applySpeedUpgrade, getEnergyManager, getEnergyPerWorkCycle, getProductTankInfo, getProgressScaled, getResourceTankInfo, getTicksPerWorkCycle, getWorkCounter, hasFuelMin, hasResourcesMin, setEnergyPerWorkCycle, setTicksPerWorkCyclegetFacing, getUnlocalizedTitle, openGui, shouldRefreshaddExternalTriggers, addInternalSidedTriggers, addInternalTriggers, canExtractItem, canInsertItem, canSlotAccept, clear, closeInventory, decrStackSize, getCoordinates, getDisplayName, getErrorLogic, getField, getFieldCount, getInternalInventory, getInventoryStackLimit, getName, getSizeInventory, getSlotsForFace, getStackInSlot, getTileCache, getUpdatePacket, getWorldObj, handleUpdateTag, hasCustomName, isEmpty, isItemValidForSlot, isLocked, isRedstoneActivated, isUsableByPlayer, onNeighborTileChange, onRemoval, openInventory, readData, removeStackFromSlot, sendNetworkUpdate, setField, setInternalInventory, setInventorySlotContents, setNeedsNetworkUpdate, update, updateClientSide, updateOnInterval, validate, writeDataaddInfoToCrashReport, canRenderBreaking, create, deserializeNBT, getBlockMetadata, getBlockType, getDistanceSq, getKey, getMaxRenderDistanceSquared, getPos, getRenderBoundingBox, getTileData, getWorld, hasFastRenderer, hasWorld, isInvalid, markDirty, mirror, onChunkUnload, onDataPacket, onLoad, onlyOpsCanSetNbt, receiveClientEvent, register, restrictNBTCopy, rotate, serializeNBT, setWorld, setWorldCreate, shouldRenderInPass, updateContainingBlockInfoclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetErrorLogicgetValidExtent, getValidPosition, increaseExtentgetCoordinates, getWorldObjpublic void setManual(boolean manual)
public void setPos(net.minecraft.util.math.BlockPos posIn)
setPos in class net.minecraft.tileentity.TileEntitypublic boolean hasWork()
hasWork in class TilePoweredprotected void updateServerSide()
updateServerSide in class TilePoweredprotected boolean workCycle()
workCycle in class TilePoweredpublic net.minecraft.nbt.NBTTagCompound writeToNBT(net.minecraft.nbt.NBTTagCompound data)
writeToNBT in class TilePoweredpublic void readFromNBT(net.minecraft.nbt.NBTTagCompound data)
readFromNBT in class TilePoweredpublic void writeGuiData(PacketBufferForestry data)
writeGuiData in interface IStreamableGuiwriteGuiData in class TilePoweredpublic void readGuiData(PacketBufferForestry data) throws java.io.IOException
readGuiData in interface IStreamableGuireadGuiData in class TilePoweredjava.io.IOExceptionpublic 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 net.minecraft.util.math.BlockPos getFarmCorner(FarmDirection direction)
getFarmCorner 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 germling, 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 IOwnerHandler getOwnerHandler()
getOwnerHandler in interface IOwnedTilepublic boolean plantGermling(IFarmable farmable, net.minecraft.world.World world, net.minecraft.util.math.BlockPos pos, FarmDirection direction)
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 boolean isValidPlatform(net.minecraft.world.World world,
net.minecraft.util.math.BlockPos pos)
isValidPlatform in interface IFarmHousingpublic boolean isSquare()
isSquare in interface IFarmHousingpublic boolean canPlantSoil(boolean manual)
canPlantSoil in interface IFarmHousingpublic IFarmInventory getFarmInventory()
getFarmInventory in interface IFarmHousingpublic void setFarmLogic(FarmDirection direction, IFarmLogic logic)
setFarmLogic in interface IFarmHousingpublic void resetFarmLogic(FarmDirection direction)
resetFarmLogic in interface IFarmHousingpublic IFarmLogic getFarmLogic(FarmDirection direction)
getFarmLogic in interface IFarmHousingpublic IFarmLogic getFarmLogic()
public int getStoredFertilizerScaled(int scale)
getStoredFertilizerScaled in interface IFarmHousingpublic void invalidate()
invalidate in class TileForestrypublic net.minecraft.nbt.NBTTagCompound getUpdateTag()
getUpdateTag in class TileForestryprotected final net.minecraft.util.math.BlockPos translateWithOffset(net.minecraft.util.math.BlockPos pos,
FarmDirection farmDirection,
int step)
public net.minecraft.client.gui.inventory.GuiContainer getGui(net.minecraft.entity.player.EntityPlayer player,
int data)
getGui in interface IGuiHandlerTilepublic net.minecraft.inventory.Container getContainer(net.minecraft.entity.player.EntityPlayer player,
int data)
getContainer in interface IGuiHandlerTilepublic IFarmLedgerDelegate getFarmLedgerDelegate()
public EnumTemperature getTemperature()
getTemperature in interface IClimatisedpublic EnumHumidity getHumidity()
getHumidity in interface IClimatisedpublic float getExactTemperature()
getExactTemperature in interface IClimatisedpublic float getExactHumidity()
getExactHumidity in interface IClimatisedpublic ITankManager getTankManager()
getTankManager in interface ILiquidTankTilepublic boolean hasCapability(net.minecraftforge.common.capabilities.Capability<?> capability,
@Nullable
net.minecraft.util.EnumFacing facing)
hasCapability in interface net.minecraftforge.common.capabilities.ICapabilityProviderhasCapability in class TilePowered@Nullable
public <T> T getCapability(net.minecraftforge.common.capabilities.Capability<T> capability,
@Nullable
net.minecraft.util.EnumFacing facing)
getCapability in interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability in class TilePoweredprotected net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> createList(net.minecraft.item.ItemStack... stacks)
public abstract net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> createGermlingStacks()
public abstract net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> createResourceStacks()
public abstract net.minecraft.util.NonNullList<net.minecraft.item.ItemStack> createProductionStacks()
public void addPendingProduce(net.minecraft.item.ItemStack stack)
addPendingProduce 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