Class WaterGrowthModifierAsset
java.lang.Object
com.hypixel.hytale.server.core.asset.type.blocktype.config.farming.GrowthModifierAsset
com.hypixel.hytale.builtin.adventure.farming.config.modifiers.WaterGrowthModifierAsset
- All Implemented Interfaces:
JsonAsset<String>,JsonAssetWithMap<String,DefaultAssetMap<String, GrowthModifierAsset>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<WaterGrowthModifierAsset> protected it.unimi.dsi.fastutil.ints.IntOpenHashSetprotected String[]protected intprotected it.unimi.dsi.fastutil.ints.IntOpenHashSetprotected String[]Fields 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 booleancheckIfRaining(CommandBuffer<ChunkStore> commandBuffer, Ref<ChunkStore> sectionRef, int x, int y, int z) protected booleancheckIfWaterSource(CommandBuffer<ChunkStore> commandBuffer, Ref<ChunkStore> sectionRef, Ref<ChunkStore> blockRef, int x, int y, int z) doublegetCurrentGrowthMultiplier(CommandBuffer<ChunkStore> commandBuffer, Ref<ChunkStore> sectionRef, Ref<ChunkStore> blockRef, int x, int y, int z, boolean initialTick) private intgetFluidAtPos(int posX, int posY, int posZ, Ref<ChunkStore> sectionRef, ChunkSection currentChunkSection, CommandBuffer<ChunkStore> commandBuffer) it.unimi.dsi.fastutil.ints.IntOpenHashSetString[]private int[]getNeighbourFluids(CommandBuffer<ChunkStore> commandBuffer, Ref<ChunkStore> sectionRef, int x, int y, int z) intprivate static TilledSoilBlockgetSoil(CommandBuffer<ChunkStore> commandBuffer, Ref<ChunkStore> sectionRef, int x, int y, int z) it.unimi.dsi.fastutil.ints.IntOpenHashSetString[]private booleanisSoilWaterExpiring(WorldTimeResource worldTimeResource, TilledSoilBlock soilBlock) toString()Methods inherited from class com.hypixel.hytale.server.core.asset.type.blocktype.config.farming.GrowthModifierAsset
getAssetMap, getAssetStore, getId, getModifier
-
Field Details
-
CODEC
-
fluids
-
fluidIds
protected it.unimi.dsi.fastutil.ints.IntOpenHashSet fluidIds -
weathers
-
weatherIds
protected it.unimi.dsi.fastutil.ints.IntOpenHashSet weatherIds -
rainDuration
protected int rainDuration
-
-
Constructor Details
-
WaterGrowthModifierAsset
public WaterGrowthModifierAsset()
-
-
Method Details
-
getFluids
-
getFluidIds
public it.unimi.dsi.fastutil.ints.IntOpenHashSet getFluidIds() -
getWeathers
-
getWeatherIds
public it.unimi.dsi.fastutil.ints.IntOpenHashSet getWeatherIds() -
getRainDuration
public int getRainDuration() -
getCurrentGrowthMultiplier
public double getCurrentGrowthMultiplier(CommandBuffer<ChunkStore> commandBuffer, Ref<ChunkStore> sectionRef, Ref<ChunkStore> blockRef, int x, int y, int z, boolean initialTick) - Overrides:
getCurrentGrowthMultiplierin classGrowthModifierAsset
-
getSoil
@Nullable private static TilledSoilBlock getSoil(CommandBuffer<ChunkStore> commandBuffer, Ref<ChunkStore> sectionRef, int x, int y, int z) -
checkIfWaterSource
protected boolean checkIfWaterSource(CommandBuffer<ChunkStore> commandBuffer, Ref<ChunkStore> sectionRef, Ref<ChunkStore> blockRef, int x, int y, int z) -
getNeighbourFluids
private int[] getNeighbourFluids(CommandBuffer<ChunkStore> commandBuffer, Ref<ChunkStore> sectionRef, int x, int y, int z) -
getFluidAtPos
private int getFluidAtPos(int posX, int posY, int posZ, Ref<ChunkStore> sectionRef, ChunkSection currentChunkSection, CommandBuffer<ChunkStore> commandBuffer) -
checkIfRaining
protected boolean checkIfRaining(CommandBuffer<ChunkStore> commandBuffer, Ref<ChunkStore> sectionRef, int x, int y, int z) -
isSoilWaterExpiring
-
toString
- Overrides:
toStringin classGrowthModifierAsset
-