Class FarmingBlock
java.lang.Object
com.hypixel.hytale.builtin.adventure.farming.states.FarmingBlock
- All Implemented Interfaces:
Component<ChunkStore>,Cloneable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<FarmingBlock> private Stringstatic final Stringprivate intprivate intprivate floatprivate Instantprivate Stringprivate floatFields inherited from interface com.hypixel.hytale.component.Component
EMPTY_ARRAY -
Constructor Summary
ConstructorsConstructorDescriptionFarmingBlock(String currentStageSet, float growthProgress, Instant lastTickGameTime, int generation, String previousBlockType, float spreadRate, int executions) -
Method Summary
Modifier and TypeMethodDescriptionclone()static ComponentType<ChunkStore, FarmingBlock> intintfloatfloatvoidsetCurrentStageSet(String currentStageSet) voidsetExecutions(int executions) voidsetGeneration(int generation) voidsetGrowthProgress(float growthProgress) voidsetLastTickGameTime(Instant lastTickGameTime) voidsetPreviousBlockType(String previousBlockType) voidsetSpreadRate(float spreadRate) 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
-
DEFAULT_STAGE_SET
- See Also:
-
CODEC
-
currentStageSet
-
growthProgress
private float growthProgress -
lastTickGameTime
-
generation
private int generation -
previousBlockType
-
spreadRate
private float spreadRate -
executions
private int executions
-
-
Constructor Details
-
FarmingBlock
public FarmingBlock() -
FarmingBlock
-
-
Method Details
-
getComponentType
-
getCurrentStageSet
-
setCurrentStageSet
-
getGrowthProgress
public float getGrowthProgress() -
setGrowthProgress
public void setGrowthProgress(float growthProgress) -
getLastTickGameTime
-
setLastTickGameTime
-
getGeneration
public int getGeneration() -
setGeneration
public void setGeneration(int generation) -
getPreviousBlockType
-
setPreviousBlockType
-
getSpreadRate
public float getSpreadRate() -
setSpreadRate
public void setSpreadRate(float spreadRate) -
getExecutions
public int getExecutions() -
setExecutions
public void setExecutions(int executions) -
clone
- Specified by:
clonein interfaceComponent<ChunkStore>- Overrides:
clonein classObject
-
toString
-