Class LightLevelGrowthModifierAsset
java.lang.Object
com.hypixel.hytale.server.core.asset.type.blocktype.config.farming.GrowthModifierAsset
com.hypixel.hytale.builtin.adventure.farming.config.modifiers.LightLevelGrowthModifierAsset
- All Implemented Interfaces:
JsonAsset<String>,JsonAssetWithMap<String,DefaultAssetMap<String, GrowthModifierAsset>>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<LightLevelGrowthModifierAsset> protected booleanprotected RangefFields inherited from class com.hypixel.hytale.server.core.asset.type.blocktype.config.farming.GrowthModifierAsset
ABSTRACT_CODEC, CHILD_ASSET_CODEC, CHILD_ASSET_CODEC_ARRAY, id, modifier -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckArtificialLight(byte red, byte green, byte blue) protected booleancheckSunLight(WorldTimeResource worldTimeResource, byte sky) doublegetCurrentGrowthMultiplier(CommandBuffer<ChunkStore> commandBuffer, Ref<ChunkStore> sectionRef, Ref<ChunkStore> blockRef, int x, int y, int z, boolean initialTick) protected static booleanbooleantoString()Methods inherited from class com.hypixel.hytale.server.core.asset.type.blocktype.config.farming.GrowthModifierAsset
getAssetMap, getAssetStore, getId, getModifier
-
Field Details
-
CODEC
-
artificialLight
-
sunlight
-
requireBoth
protected boolean requireBoth
-
-
Constructor Details
-
LightLevelGrowthModifierAsset
public LightLevelGrowthModifierAsset()
-
-
Method Details
-
getArtificialLight
-
getSunlight
-
isRequireBoth
public boolean isRequireBoth() -
checkArtificialLight
protected boolean checkArtificialLight(byte red, byte green, byte blue) -
checkSunLight
-
isInRange
-
getCurrentGrowthMultiplier
public double getCurrentGrowthMultiplier(CommandBuffer<ChunkStore> commandBuffer, Ref<ChunkStore> sectionRef, Ref<ChunkStore> blockRef, int x, int y, int z, boolean initialTick) - Overrides:
getCurrentGrowthMultiplierin classGrowthModifierAsset
-
toString
- Overrides:
toStringin classGrowthModifierAsset
-