Contents
Class TilledSoilBlock
java.lang.Object
com.hypixel.hytale.builtin.adventure.farming.states.TilledSoilBlock
- All Implemented Interfaces:
Component<ChunkStore>, Cloneable
A component that represents a tilled soil block used for farming.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<TilledSoilBlock> The codec used to parseTilledSoilBlockinstances.static intFields inherited from interface Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionTilledSoilBlock(boolean planted, boolean fertilized, boolean externalWater, Instant wateredUntil, Instant decayTime) -
Method Summary
Modifier and TypeMethodDescriptionclone()computeBlockType(Instant gameTime, BlockType type) static ComponentType<ChunkStore, TilledSoilBlock> booleanbooleanbooleanvoidsetDecayTime(Instant decayTime) voidsetExternalWater(boolean externalWater) voidsetFertilized(boolean fertilized) voidsetPlanted(boolean planted) voidsetWateredUntil(Instant wateredUntil) toString()Methods inherited from interface Component
cloneSerializable
-
Field Details
-
VERSION
public static int VERSION -
CODEC
The codec used to parseTilledSoilBlockinstances.
-
-
Constructor Details
-
TilledSoilBlock
public TilledSoilBlock() -
TilledSoilBlock
-
-
Method Details
-
getComponentType
-
isPlanted
public boolean isPlanted() -
setPlanted
public void setPlanted(boolean planted) -
setWateredUntil
-
getWateredUntil
-
isFertilized
public boolean isFertilized() -
setFertilized
public void setFertilized(boolean fertilized) -
hasExternalWater
public boolean hasExternalWater() -
setExternalWater
public void setExternalWater(boolean externalWater) -
getDecayTime
-
setDecayTime
-
computeBlockType
-
toString
-
clone
- Specified by:
clonein interfaceComponent<ChunkStore>- Returns:
- a clone instance of the original component instance.
-