Class WorldParticleBuilder
java.lang.Object
team.lodestar.lodestone.systems.particle.WorldParticleBuilder
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedWorldParticleBuilder(net.minecraft.core.particles.ParticleType<?> type) -
Method Summary
Modifier and TypeMethodDescriptionact(Consumer<WorldParticleBuilder> particleBuilderConsumer) addActor(Consumer<GenericParticle> particleActor) addMotion(double vx, double vy, double vz) static WorldParticleBuildercreate(net.minecraft.core.particles.ParticleType<?> type) static WorldParticleBuildercreate(net.minecraftforge.registries.RegistryObject<?> type) createBlockOutline(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) createCircle(net.minecraft.world.level.Level level, double x, double y, double z, double distance, double currentCount, double totalCount) repeat(net.minecraft.world.level.Level level, double x, double y, double z, int n) repeatCircle(net.minecraft.world.level.Level level, double x, double y, double z, double distance, int times) repeatRandomFace(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, int n) repeatSurroundBlock(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, int n) repeatSurroundBlock(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, int n, net.minecraft.core.Direction... directions) setColorData(ColorParticleData colorData) setDiscardFunction(SimpleParticleOptions.ParticleDiscardFunctionType discardFunctionType) setGravity(float gravity) setLifetime(int lifetime) setMotion(double vx, double vy, double vz) setRandomMotion(double maxSpeed) setRandomMotion(double maxHSpeed, double maxVSpeed) setRandomMotion(double maxXSpeed, double maxYSpeed, double maxZSpeed) setRandomOffset(double maxDistance) setRandomOffset(double maxHDist, double maxVDist) setRandomOffset(double maxXDist, double maxYDist, double maxZDist) setRenderType(net.minecraft.client.particle.ParticleRenderType renderType) setScaleData(GenericParticleData scaleData) setSpinData(SpinParticleData spinData) setSpritePicker(SimpleParticleOptions.ParticleSpritePicker spritePicker) setTransparencyData(GenericParticleData transparencyData) spawn(net.minecraft.world.level.Level level, double x, double y, double z) spawnAtRandomFace(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) spawnLine(net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 one, net.minecraft.world.phys.Vec3 two) surroundBlock(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction... directions) surroundVoxelShape(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int max) surroundVoxelShape(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.shapes.VoxelShape voxelShape, int max)
-
Constructor Details
-
WorldParticleBuilder
protected WorldParticleBuilder(net.minecraft.core.particles.ParticleType<?> type)
-
-
Method Details
-
create
-
create
-
setColorData
-
setScaleData
-
setTransparencyData
-
setSpinData
-
setGravity
-
enableNoClip
-
disableNoClip
-
setSpritePicker
public WorldParticleBuilder setSpritePicker(SimpleParticleOptions.ParticleSpritePicker spritePicker) -
setDiscardFunction
public WorldParticleBuilder setDiscardFunction(SimpleParticleOptions.ParticleDiscardFunctionType discardFunctionType) -
setRenderType
public WorldParticleBuilder setRenderType(net.minecraft.client.particle.ParticleRenderType renderType) -
setLifetime
-
setRandomMotion
-
setRandomMotion
-
setRandomMotion
-
addMotion
-
setMotion
-
setRandomOffset
-
setRandomOffset
-
setRandomOffset
-
act
-
addActor
-
spawn
public WorldParticleBuilder spawn(net.minecraft.world.level.Level level, double x, double y, double z) -
repeat
public WorldParticleBuilder repeat(net.minecraft.world.level.Level level, double x, double y, double z, int n) -
surroundBlock
public WorldParticleBuilder surroundBlock(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.core.Direction... directions) -
repeatSurroundBlock
public WorldParticleBuilder repeatSurroundBlock(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, int n) -
repeatSurroundBlock
public WorldParticleBuilder repeatSurroundBlock(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, int n, net.minecraft.core.Direction... directions) -
surroundVoxelShape
public WorldParticleBuilder surroundVoxelShape(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.phys.shapes.VoxelShape voxelShape, int max) -
surroundVoxelShape
public WorldParticleBuilder surroundVoxelShape(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, int max) -
spawnAtRandomFace
public WorldParticleBuilder spawnAtRandomFace(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos) -
repeatRandomFace
public WorldParticleBuilder repeatRandomFace(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, int n) -
createCircle
public WorldParticleBuilder createCircle(net.minecraft.world.level.Level level, double x, double y, double z, double distance, double currentCount, double totalCount) -
repeatCircle
public WorldParticleBuilder repeatCircle(net.minecraft.world.level.Level level, double x, double y, double z, double distance, int times) -
createBlockOutline
public WorldParticleBuilder createBlockOutline(net.minecraft.world.level.Level level, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state) -
spawnLine
public WorldParticleBuilder spawnLine(net.minecraft.world.level.Level level, net.minecraft.world.phys.Vec3 one, net.minecraft.world.phys.Vec3 two)
-