Class FallingLeafUtil

java.lang.Object
net.frozenblock.wilderwild.block.impl.FallingLeafUtil

public class FallingLeafUtil extends Object
  • Constructor Details

    • FallingLeafUtil

      public FallingLeafUtil()
  • Method Details

    • registerFallingLeafWithLitter

      public static void registerFallingLeafWithLitter(net.minecraft.world.level.block.Block block, LeafLitterBlock leafLitterBlock, float litterChance, net.minecraft.core.particles.ParticleType<LeafParticleOptions> leafParticle, float particleChance, Supplier<Double> frequencyModifier, float quadSize, float particleGravityScale)
    • registerFallingLeaf

      public static void registerFallingLeaf(net.minecraft.world.level.block.Block block, net.minecraft.core.particles.ParticleType<LeafParticleOptions> leafParticle, float particleChance, Supplier<Double> frequencyModifier, float quadSize, float particleGravityScale)
    • getFallingLeafData

      public static Optional<FallingLeafUtil.FallingLeafData> getFallingLeafData(net.minecraft.world.level.block.Block block)
    • getLeafParticleData

      public static FallingLeafUtil.LeafParticleData getLeafParticleData(net.minecraft.core.particles.ParticleType<LeafParticleOptions> leafParticle)
    • onRandomTick

      public static void onRandomTick(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, net.minecraft.server.level.ServerLevel world, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random)
    • sendLeafClusterParticle

      public static void sendLeafClusterParticle(@NotNull @NotNull net.minecraft.server.level.ServerLevel world, @NotNull @NotNull net.minecraft.core.BlockPos pos, @NotNull @NotNull FallingLeafUtil.FallingLeafData fallingLeafData)
    • isSafePosToPlaceLitter

      public static boolean isSafePosToPlaceLitter(@NotNull @NotNull net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, @NotNull @NotNull net.minecraft.world.level.block.state.BlockState stateToReplace, net.minecraft.world.level.block.Block leafLitterBlock)
    • addFallingLeafParticles

      public static void addFallingLeafParticles(@NotNull @NotNull net.minecraft.world.level.block.state.BlockState state, net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.util.RandomSource random)
    • createLeafParticleOptions

      @NotNull public static @NotNull LeafParticleOptions createLeafParticleOptions(@NotNull FallingLeafUtil.FallingLeafData fallingLeafData)