WaterGrowthModifierAsset

public class WaterGrowthModifierAsset extends GrowthModifierAsset

Class WaterGrowthModifierAsset. Provides watergrowthmodifierasset functionality for the Hytale server.

java.lang.Object > GrowthModifierAsset > WaterGrowthModifierAsset

Field Summary

fluids

protected String[] fluids

Field fluids.

fluidIds

protected IntOpenHashSet fluidIds

Field fluidIds.

weathers

protected String[] weathers

Field weathers.

weatherIds

protected IntOpenHashSet weatherIds

Field weatherIds.

rainDuration

protected int rainDuration

Field rainDuration.

hasWaterBlock

final boolean hasWaterBlock

Field hasWaterBlock.

isRaining

final boolean isRaining

Field isRaining.

soil

final TilledSoilBlock soil

Field soil.

chunkSection

final ChunkSection chunkSection

Field chunkSection.

chunk

final Ref chunk

Field chunk.

blockComponentChunk

final BlockComponentChunk blockComponentChunk

Field blockComponentChunk.

blockRefBelow

final Ref blockRefBelow

Field blockRefBelow.

waterBlocks

final IntOpenHashSet waterBlocks

Field waterBlocks.

neighbourFluids

final int[] neighbourFluids

Field neighbourFluids.

section

final ChunkSection section

Field section.

chunkX

final int chunkX

Field chunkX.

chunkY

final int chunkY

Field chunkY.

chunkZ

final int chunkZ

Field chunkZ.

blockChunk

final BlockChunk blockChunk

Field blockChunk.

cropId

final int cropId

Field cropId.

store

final Store store

Field store.

worldTimeResource

final WorldTimeResource worldTimeResource

Field worldTimeResource.

weatherResource

final WeatherResource weatherResource

Field weatherResource.

environment

final int environment

Field environment.

block

final int block

Field block.

until

final Instant until

Field until.

now

final Instant now

Field now.

Method Detail

getFluids

public String[] getFluids ()

Method getFluids.

getFluidIds

public IntOpenHashSet getFluidIds ()

Method getFluidIds.

getWeathers

public String[] getWeathers ()

Method getWeathers.

getWeatherIds

public IntOpenHashSet getWeatherIds ()

Method getWeatherIds.

getRainDuration

public int getRainDuration ()

Method getRainDuration.

getCurrentGrowthMultiplier

public 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 CommandBuffer commandBuffer
final Ref sectionRef
final Ref blockRef
final int x
final int y
final int z
final boolean initialTick

getSoil

static TilledSoilBlock getSoil (final CommandBuffer commandBuffer, final Ref sectionRef, final int x, final int y, final int z)

Method getSoil.

Parameters:
final CommandBuffer commandBuffer
final Ref sectionRef
final int x
final int y
final int z

checkIfWaterSource

protected boolean checkIfWaterSource (final CommandBuffer commandBuffer, final Ref sectionRef, final Ref blockRef, final int x, final int y, final int z)

Method checkIfWaterSource.

Parameters:
final CommandBuffer commandBuffer
final Ref sectionRef
final Ref blockRef
final int x
final int y
final int z

getNeighbourFluids

private int[] getNeighbourFluids (final CommandBuffer commandBuffer, final Ref sectionRef, final int x, final int y, final int z)

Method getNeighbourFluids.

Parameters:
final CommandBuffer commandBuffer
final Ref sectionRef
final int x
final int y
final int z

getFluidAtPos

private int getFluidAtPos (final int posX, final int posY, final int posZ, final Ref sectionRef, final ChunkSection currentChunkSection, final CommandBuffer commandBuffer)

Method getFluidAtPos.

Parameters:
final int posX
final int posY
final int posZ
final Ref sectionRef
final ChunkSection currentChunkSection
final CommandBuffer commandBuffer

checkIfRaining

protected boolean checkIfRaining (final CommandBuffer commandBuffer, final Ref sectionRef, final int x, final int y, final int z)

Method checkIfRaining.

Parameters:
final CommandBuffer commandBuffer
final Ref sectionRef
final int x
final int y
final int z

isSoilWaterExpiring

private boolean isSoilWaterExpiring (final WorldTimeResource worldTimeResource, final TilledSoilBlock soilBlock)

Method isSoilWaterExpiring.

Parameters:
final WorldTimeResource worldTimeResource
final TilledSoilBlock soilBlock

toString

public String toString ()

Method toString.