Agriculture
Index
Classes
- BiomeBonusesManager
- CropBaseMetalCommon
- CropBaseMetalUncommon
- CropBaseMushroom
- CropBeetroots
- CropBrownMushroom
- CropCard
- CropCardManager
- CropCarrots
- CropCocoa
- CropCoffee
- CropColorFlowerCard
- CropEatingplant
- CropHops
- CropMelon
- CropNetherWart
- CropPotato
- CropPumpkin
- CropRedMushroom
- CropRedWheat
- CropReed
- CropStickreed
- CropTerraWart
- CropTile
- CropVanilla
- CropVenomilia
- CropWeed
- CropWheat
- SeedExtraCreator
Interfaces
Type Aliases
Variables
Classes
BiomeBonusesManager
constructor
Returns BiomeBonusesManager
staticgetHumidityBiomeBonus
Parameters
x: number
z: number
Returns number
staticgetNutrientBiomeBonus
Parameters
x: number
z: number
Returns any
CropBaseMetalCommon
constructor
Parameters
id: string
attributes: string[]
requirements: number[]
gain: ItemInstance
Returns CropBaseMetalCommon
protectedattributes
protectedgain
protectedid
protectedrequirements
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
tileentity: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getCropRootsRequirement
Returns number[]
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
tileentity: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
tileentity: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
tileentity: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropBaseMetalUncommon
constructor
Parameters
id: string
attributes: string[]
requirements: number[]
gain: ItemInstance
Returns CropBaseMetalUncommon
protectedattributes
protectedgain
protectedid
protectedrequirements
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
tileentity: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getCropRootsRequirement
Returns number[]
getDiscoveredBy
Returns string
getDropGainChance
Returns number
getGain
Parameters
tileentity: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
tileentity: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
tileentity: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
abstractCropBaseMushroom
constructor
Returns CropBaseMushroom
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
tileentity: ICropTileEntity
Returns boolean
abstractgetAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
abstractgetGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
tileentity: ICropTileEntity
Returns number
abstractgetID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
te: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropBeetroots
constructor
Returns CropBeetroots
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
tileentity: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeed
Parameters
te: ICropTileEntity
Returns ItemInstance
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
te: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropBrownMushroom
constructor
Returns CropBrownMushroom
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
tileentity: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
tileentity: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
te: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
abstractCropCard
constructor
Returns CropCard
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
te: ICropTileEntity
Returns boolean
abstractgetAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
abstractgetGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
abstractgetID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
te: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropCardManager
constructor
Returns CropCardManager
privatestaticcropCards
staticgetALLCropCards
Returns CropCard[]
staticgetCardFromID
Parameters
id: string
Returns CropCard
staticgetCardFromSeed
staticgetCropCardByIndex
Parameters
index: number
Returns CropCard
staticgetIndexByCropCardID
Parameters
id: string
Returns number
staticregisterCropCard
Parameters
cropCard: CropCard
Returns void
registred card ID
CropCarrots
constructor
Returns CropCarrots
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
tileentity: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeed
Parameters
te: ICropTileEntity
Returns ItemInstance
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
te: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropCocoa
constructor
Returns CropCocoa
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
te: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
tileentity: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropCoffee
constructor
Returns CropCoffee
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
te: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
te: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropColorFlowerCard
constructor
Parameters
id: string
attributes: string[]
dye: ItemInstance
optionalbaseSeed: BaseSeed
Returns CropColorFlowerCard
protectedattributes
protectedoptionalbaseSeed
protecteddye
protectedid
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
tileentity: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
te: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropEatingplant
constructor
Returns CropEatingplant
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
te: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
te: ICropTileEntity
Returns number
getTexture
Returns string
hasMetalArmor
Parameters
player: number
Returns boolean
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropHops
constructor
Returns CropHops
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
te: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
te: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropMelon
constructor
Returns CropMelon
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
tileentity: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeed
Parameters
te: ICropTileEntity
Returns ItemInstance
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
tileentity: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropNetherWart
constructor
Returns CropNetherWart
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
te: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
te: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropPotato
constructor
Returns CropPotato
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
te: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeed
Parameters
te: ICropTileEntity
Returns ItemInstance
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
tileentity: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropPumpkin
constructor
Returns CropPumpkin
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
tileentity: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeed
Parameters
te: ICropTileEntity
Returns ItemInstance
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
tileentity: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropRedMushroom
constructor
Returns CropRedMushroom
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
tileentity: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
tileentity: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
te: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropRedWheat
constructor
Returns CropRedWheat
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
te: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
te: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropReed
constructor
Returns CropReed
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
te: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
te: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropStickreed
constructor
Returns CropStickreed
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
te: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
te: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropTerraWart
constructor
Returns CropTerraWart
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
te: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
te: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropTile
constructor
Returns CropTile
__clientMethods
Type declaration
[key string]: boolean
__containerEvents
Type declaration
[key string]: Side
__initialized
__networkEvents
Type declaration
[key string]: Side
readonlyblockID
blockSource
click
Type declaration
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
player: number
extra: ItemExtraData
Returns boolean | void
client
Type declaration
containerEvents: {}
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
events: {}
[packetName string]: (packetData: any, packetExtra: any) => void
load: () => void
Returns void
tick: () => void
Returns void
unload: () => void
Returns void
container
containerEvents
Type declaration
[eventName string]: (container: ItemContainer, window: UI.IWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
crop
data
defaultValues
Type declaration
crop: any
crossingBase: boolean
currentSize: number
dirty: boolean
growthPoints: number
scanLevel: number
statGain: number
statGrowth: number
statResistance: number
storageNutrients: number
storageWater: number
storageWeedEX: number
terrainAirQuality: number
terrainHumidity: number
terrainNutrients: number
readonlydimension
events
Type declaration
[packetName string]: (packetData: any, packetExtra: any, connectedClient: NetworkClient) => void
getGuiScreen
Type declaration
Returns Nullable<IWindow>
isLoaded
liquidStorage
networkData
networkEntity
networkEntityType
networkEntityTypeName
noupdate
optionalonConnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
optionalonDisconnectionPlayer
Type declaration
Parameters
client: NetworkClient
Returns void
region
Interface for BlockSource of the TileEntity. Provides more functionality.
remove
sendPacket
Type declaration
Parameters
name: string
data: object
Returns {}
sendResponse
Type declaration
Parameters
packetName: string
someData: object
Returns {}
update
Type declaration
Returns void
readonlyuseNetworkItemContainer
x
y
z
applyFertilizer
Parameters
manual: boolean
Returns boolean
applyHydration
Parameters
amount: number
Returns number
applyWeedEx
Parameters
stack: ItemStack
manual: boolean
Returns boolean
askCropJoinCross
Parameters
coordsArray: [number[], number[], number[], number[]]
Returns any[]
attemptCrossing
Returns boolean
calculateRatioFor
checkGround
Returns void
checkPlayerRunning
Parameters
playerUid: number
Returns void
clientLoad
Called when the client copy is created
Returns void
clientTick
Called every tick on client thread
Returns void
clientUnload
Called on destroying the client copy
Returns void
created
Returns void
destroy
Returns boolean
destroyBlock
Parameters
coords: ItemUseCoordinates
playerUid: number
Returns void
generateSeeds
Parameters
data: any
Returns ItemInstance
getRelativeCoords
Returns [number[], number[], number[], number[]]
getScreenByName
Parameters
screenName: string
container: ItemContainer
Returns IWindow
getScreenName
Parameters
player: number
coords: ItemUseCoordinates
Returns string
hasWeedEX
Returns boolean
init
Returns void
isBlockBelow
Parameters
reqBlockID: number
Returns boolean
lim
Parameters
value: number
min: number
max: number
Returns number
load
Returns void
nextGaussian
Returns number
onCheckerTick
Parameters
isInitialized: boolean
isLoaded: boolean
wasLoaded: boolean
Returns void
onCreate
Called when a TileEntity is created
Returns void
onInit
Called when a TileEntity is initialised in the world
Returns void
onItemClick
Parameters
id: number
count: number
data: number
coords: ItemUseCoordinates
playerUid: number
extra: ItemExtraData
Returns boolean
onItemUse
Called when player uses some item on a TileEntity. Replaces "click" function.
Parameters
coords: ItemUseCoordinates
item: ItemStack
player: number
Returns boolean
true if should prevent opening UI.
onLoad
Called when a chunk with TileEntity is loaded
Returns void
onLongClick
Parameters
playerUid: number
Returns boolean
onRedstoneUpdate
Occurs when redstone signal on TileEntity block was updated
Parameters
signal: number
signal power (0-15)
Returns void
onTick
Called every tick and should be used for all the updates of the TileEntity
Returns void
onUnload
Called when a chunk with TileEntity is unloaded
Returns void
performGrowthTick
Returns void
performHarvest
Returns ItemInstance[]
performManualHarvest
Returns boolean
performTick
Returns void
performWeedWork
Returns void
pick
Returns boolean
preventClick
Prevents all actions on click
Returns void
projectileHit
Parameters
coords: ItemUseCoordinates
target: ProjectileHitTarget
Returns void
redstone
Parameters
params: { onLoad: boolean; power: number; signal: number }
onLoad: boolean
power: number
signal: number
Returns void
renderModel
Returns void
requireMoreLiquid
Parameters
liquid: string
amount: number
Returns void
reset
Returns void
selfDestroy
Returns void
setLiquidScale
Parameters
container: any
window: any
content: any
data: { amount: number; liquid: string; scale: string }
amount: number
liquid: string
scale: string
Returns void
tick
Returns void
tryPlantIn
Parameters
cropCardID: number
size: number
statGr: number
statGa: number
statRe: number
scan: number
Returns boolean
unload
Returns void
updateLiquidScale
Parameters
scale: string
liquid: string
Returns void
updateRender
Returns void
updateTerrainAirQuality
Returns void
updateTerrainHumidity
Returns void
updateTerrainNutrients
Returns void
abstractCropVanilla
constructor
Returns CropVanilla
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
tileentity: ICropTileEntity
Returns boolean
abstractgetAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
abstractgetID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
abstractgetSeed
Parameters
te: ICropTileEntity
Returns ItemInstance
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
te: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropVenomilia
constructor
Returns CropVenomilia
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
te: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
tileentity: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
entity: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropWeed
constructor
Returns CropWeed
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
te: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
te: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
CropWheat
constructor
Returns CropWheat
canBeHarvested
Parameters
te: ICropTileEntity
Returns boolean
canCross
Parameters
te: ICropTileEntity
Returns boolean
canGrow
Parameters
tileentity: ICropTileEntity
Returns boolean
getAttributes
Returns string[]
getBaseSeed
Returns BaseSeed
getDiscoveredBy
Returns string
getDropGainChance
Parameters
te: ICropTileEntity
Returns number
getGain
Parameters
te: ICropTileEntity
Returns ItemInstance
getGrowthDuration
Parameters
te: ICropTileEntity
Returns number
getID
Returns string
getMaxSize
Returns number
getOptimalHarvestSize
Parameters
te: ICropTileEntity
Returns number
getProduct
Returns ItemInstance
getProperties
Returns CropCardProperties
getRootsLength
Parameters
te: ICropTileEntity
Returns number
getSeed
Parameters
te: ICropTileEntity
Returns ItemInstance
getSeedDropChance
Parameters
te: ICropTileEntity
Returns number
getSeeds
Parameters
te: ICropTileEntity
Returns any
getSizeAfterHarvest
Parameters
tileentity: ICropTileEntity
Returns number
getTexture
Returns string
initialize
Parameters
cardID: number
Returns void
isWeed
Parameters
te: ICropTileEntity
Returns boolean
onEntityCollision
Parameters
te: ICropTileEntity
entity: number
Returns boolean
onLeftClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
onRightClick
Parameters
te: ICropTileEntity
player: number
Returns boolean
tick
Parameters
te: ICropTileEntity
Returns void
SeedExtraCreator
constructor
Returns SeedExtraCreator
staticgenerateExtraFromValues
Parameters
data: CropTileData
Returns ItemExtraData
staticgetDefaultExtra
Parameters
cardIndex: number
Returns ItemExtraData
Interfaces
ICropTileEntity
crop
data
region
generateSeeds
Parameters
tileData: CropTileData
Returns ItemInstance
isBlockBelow
Parameters
reqBlockID: number
Returns boolean
onLongClick
Parameters
player: number
Returns boolean
performManualHarvest
Returns boolean
pick
Returns boolean
updateRender
Returns void
Type Aliases
BaseSeed
Type declaration
addToCreative: boolean
optionaldata?: number
gain: number
growth: number
optionalid?: number | string
resistance: number
size: number
CropCardProperties
Type declaration
chemistry: number
colorful: number
consumable: number
defensive: number
tier: number
weed: number
CropTileData
Type declaration
crop: number
crossingBase: boolean
currentSize: number
dirty: boolean
growthPoints: number
scanLevel: number
statGain: number
statGrowth: number
statResistance: number
storageNutrients: number
storageWater: number
storageWeedEX: number
terrainAirQuality: number
terrainHumidity: number
terrainNutrients: number
SeedBagStackData
Type declaration
data: CropTileData
extra: ItemExtraData
id: number
Variables
NutrientBiomeBonus
Type declaration
1: number
11: number
12: number
128: number
129: number
13: number
131: number
132: number
134: number
14: number
149: number
15: number
151: number
155: number
156: number
157: number
158: number
161: number
162: number
163: number
165: number
166: number
17: number
18: number
19: number
20: number
21: number
22: number
23: number
27: number
28: number
29: number
3: number
31: number
33: number
34: number
35: number
36: number
37: number
38: number
39: number
4: number
6: number
7: number
Register new card