TilledSoilBlock

public class TilledSoilBlock implements Component

Class TilledSoilBlock. Provides tilledsoilblock functionality for the Hytale server.

java.lang.Object > TilledSoilBlock

Field Summary

planted

protected boolean planted

Field planted.

fertilized

protected boolean fertilized

Field fertilized.

externalWater

protected boolean externalWater

Field externalWater.

wateredUntil

protected Instant wateredUntil

Field wateredUntil.

decayTime

protected Instant decayTime

Field decayTime.

watered

final boolean watered

Field watered.

Method Detail

getComponentType

public TilledSoilBlock> getComponentType ()

Method getComponentType.

TilledSoilBlock

public public TilledSoilBlock ()

Method TilledSoilBlock.

isPlanted

public boolean isPlanted ()

Method isPlanted.

setPlanted

public void setPlanted (final boolean planted)

Method setPlanted.

Parameters:
final boolean planted

setWateredUntil

public void setWateredUntil (@Nullable final Instant wateredUntil)

Method setWateredUntil.

Parameters:
@Nullable final Instant wateredUntil

getWateredUntil

public Instant getWateredUntil ()

Method getWateredUntil.

isFertilized

public boolean isFertilized ()

Method isFertilized.

setFertilized

public void setFertilized (final boolean fertilized)

Method setFertilized.

Parameters:
final boolean fertilized

hasExternalWater

public boolean hasExternalWater ()

Method hasExternalWater.

setExternalWater

public void setExternalWater (final boolean externalWater)

Method setExternalWater.

Parameters:
final boolean externalWater

getDecayTime

public Instant getDecayTime ()

Method getDecayTime.

setDecayTime

public void setDecayTime (@Nullable final Instant decayTime)

Method setDecayTime.

Parameters:
@Nullable final Instant decayTime

computeBlockType

public String computeBlockType (final Instant gameTime, final BlockType type)

Method computeBlockType.

Parameters:
final Instant gameTime
final BlockType type

toString

public String toString ()

Method toString.

clone

public Component clone ()

Method clone.