public class WaterGrowthModifierAsset extends GrowthModifierAsset
Class WaterGrowthModifierAsset. Provides watergrowthmodifierasset functionality for the Hytale server.
java.lang.Object > GrowthModifierAsset > WaterGrowthModifierAsset
Field Summary
fluids
Field fluids.
fluidIds
Field fluidIds.
weathers
Field weathers.
weatherIds
Field weatherIds.
rainDuration
Field rainDuration.
hasWaterBlock
Field hasWaterBlock.
isRaining
Field isRaining.
soil
Field soil.
chunkSection
Field chunkSection.
chunk
Field chunk.
blockComponentChunk
Field blockComponentChunk.
blockRefBelow
Field blockRefBelow.
waterBlocks
Field waterBlocks.
neighbourFluids
Field neighbourFluids.
section
Field section.
chunkX
Field chunkX.
chunkY
Field chunkY.
chunkZ
Field chunkZ.
blockChunk
Field blockChunk.
cropId
Field cropId.
store
Field store.
worldTimeResource
Field worldTimeResource.
weatherResource
Field weatherResource.
environment
Field environment.
block
Field block.
until
Field until.
now
Field now.
Method Detail
getFluids
String[]
getFluids
()
Method getFluids.
getFluidIds
IntOpenHashSet
getFluidIds
()
Method getFluidIds.
getWeathers
String[]
getWeathers
()
Method getWeathers.
getWeatherIds
IntOpenHashSet
getWeatherIds
()
Method getWeatherIds.
getRainDuration
int
getRainDuration
()
Method getRainDuration.
getCurrentGrowthMultiplier
double
getCurrentGrowthMultiplier
(final CommandBuffer commandBuffer, final Ref sectionRef, final Ref blockRef, final int x, final int y, final int z, final boolean initialTick)
Method getCurrentGrowthMultiplier.
- Parameters:
final CommandBuffercommandBufferfinal RefsectionReffinal RefblockReffinal intxfinal intyfinal intzfinal booleaninitialTick
getSoil
TilledSoilBlock
getSoil
(final CommandBuffer commandBuffer, final Ref sectionRef, final int x, final int y, final int z)
Method getSoil.
- Parameters:
final CommandBuffercommandBufferfinal RefsectionReffinal intxfinal intyfinal intz
checkIfWaterSource
boolean
checkIfWaterSource
(final CommandBuffer commandBuffer, final Ref sectionRef, final Ref blockRef, final int x, final int y, final int z)
Method checkIfWaterSource.
- Parameters:
final CommandBuffercommandBufferfinal RefsectionReffinal RefblockReffinal intxfinal intyfinal intz
getNeighbourFluids
int[]
getNeighbourFluids
(final CommandBuffer commandBuffer, final Ref sectionRef, final int x, final int y, final int z)
Method getNeighbourFluids.
- Parameters:
final CommandBuffercommandBufferfinal RefsectionReffinal intxfinal intyfinal intz
getFluidAtPos
int
getFluidAtPos
(final int posX, final int posY, final int posZ, final Ref sectionRef, final ChunkSection currentChunkSection, final CommandBuffer commandBuffer)
Method getFluidAtPos.
- Parameters:
final intposXfinal intposYfinal intposZfinal RefsectionReffinal ChunkSectioncurrentChunkSectionfinal CommandBuffercommandBuffer
checkIfRaining
boolean
checkIfRaining
(final CommandBuffer commandBuffer, final Ref sectionRef, final int x, final int y, final int z)
Method checkIfRaining.
- Parameters:
final CommandBuffercommandBufferfinal RefsectionReffinal intxfinal intyfinal intz
isSoilWaterExpiring
boolean
isSoilWaterExpiring
(final WorldTimeResource worldTimeResource, final TilledSoilBlock soilBlock)
Method isSoilWaterExpiring.
- Parameters:
final WorldTimeResourceworldTimeResourcefinal TilledSoilBlocksoilBlock
toString
String
toString
()
Method toString.