Package net.minecraft.util
Class ParticleUtils
java.lang.Object
net.minecraft.util.ParticleUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Vec3
getRandomSpeedRanges
(RandomSource random) static void
spawnParticleBelow
(Level level, BlockPos pos, RandomSource random, ParticleOptions particle) static void
spawnParticleInBlock
(LevelAccessor level, BlockPos pos, int count, ParticleOptions particle) static void
spawnParticleOnFace
(Level level, BlockPos pos, Direction direction, ParticleOptions particle, Vec3 speed, double spread) static void
spawnParticles
(LevelAccessor level, BlockPos pos, int count, double xzSpread, double ySpread, boolean allowInAir, ParticleOptions particle) static void
spawnParticlesAlongAxis
(Direction.Axis axis, Level level, BlockPos pos, double spread, ParticleOptions particle, UniformInt count) static void
spawnParticlesOnBlockFace
(Level level, BlockPos pos, ParticleOptions particle, IntProvider count, Direction direction, Supplier<Vec3> speedSupplier, double spread) static void
spawnParticlesOnBlockFaces
(Level level, BlockPos pos, ParticleOptions particle, IntProvider count) static void
spawnSmashAttackParticles
(LevelAccessor level, BlockPos pos, int power)
-
Constructor Details
-
ParticleUtils
public ParticleUtils()
-
-
Method Details
-
spawnParticlesOnBlockFaces
public static void spawnParticlesOnBlockFaces(Level level, BlockPos pos, ParticleOptions particle, IntProvider count) -
spawnParticlesOnBlockFace
public static void spawnParticlesOnBlockFace(Level level, BlockPos pos, ParticleOptions particle, IntProvider count, Direction direction, Supplier<Vec3> speedSupplier, double spread) -
getRandomSpeedRanges
-
spawnParticlesAlongAxis
public static void spawnParticlesAlongAxis(Direction.Axis axis, Level level, BlockPos pos, double spread, ParticleOptions particle, UniformInt count) -
spawnParticleOnFace
public static void spawnParticleOnFace(Level level, BlockPos pos, Direction direction, ParticleOptions particle, Vec3 speed, double spread) -
spawnParticleBelow
public static void spawnParticleBelow(Level level, BlockPos pos, RandomSource random, ParticleOptions particle) -
spawnParticleInBlock
public static void spawnParticleInBlock(LevelAccessor level, BlockPos pos, int count, ParticleOptions particle) -
spawnParticles
public static void spawnParticles(LevelAccessor level, BlockPos pos, int count, double xzSpread, double ySpread, boolean allowInAir, ParticleOptions particle) -
spawnSmashAttackParticles
-