Class FallingLeafUtil
java.lang.Object
net.frozenblock.wilderwild.block.impl.FallingLeafUtil
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddFallingLeafParticles(@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) static @NotNull LeafParticleOptionscreateLeafParticleOptions(@NotNull FallingLeafUtil.FallingLeafData fallingLeafData) getFallingLeafData(net.minecraft.world.level.block.Block block) getLeafParticleData(net.minecraft.core.particles.ParticleType<LeafParticleOptions> leafParticle) static booleanisSafePosToPlaceLitter(@NotNull net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, @NotNull net.minecraft.world.level.block.state.BlockState stateToReplace, net.minecraft.world.level.block.Block leafLitterBlock) static voidonRandomTick(@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) static voidregisterFallingLeaf(net.minecraft.world.level.block.Block block, net.minecraft.core.particles.ParticleType<LeafParticleOptions> leafParticle, float particleChance, Supplier<Double> frequencyModifier, float quadSize, float particleGravityScale) static voidregisterFallingLeafWithLitter(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) static voidsendLeafClusterParticle(@NotNull net.minecraft.server.level.ServerLevel world, @NotNull net.minecraft.core.BlockPos pos, @NotNull FallingLeafUtil.FallingLeafData fallingLeafData)
-
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)
-