Class TilledSoilBlock
java.lang.Object
com.hypixel.hytale.builtin.adventure.farming.states.TilledSoilBlock
- All Implemented Interfaces:
Component<ChunkStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<TilledSoilBlock> protected Instantprotected booleanprotected booleanprotected booleanstatic intprotected InstantFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionTilledSoilBlock(boolean planted, boolean fertilized, boolean externalWater, Instant wateredUntil, Instant decayTime) -
Method Summary
Modifier and TypeMethodDescriptionclone()computeBlockType(Instant gameTime, com.hypixel.hytale.server.core.asset.type.blocktype.config.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 class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.hypixel.hytale.component.Component
cloneSerializable
-
Field Details
-
VERSION
public static int VERSION -
CODEC
-
planted
protected boolean planted -
fertilized
protected boolean fertilized -
externalWater
protected boolean externalWater -
wateredUntil
-
decayTime
-
-
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>- Overrides:
clonein classObject
-