Class WorldParticleBuilder
java.lang.Object
team.lodestar.lodestone.systems.particle.builder.AbstractParticleBuilder<WorldParticleOptions>
team.lodestar.lodestone.systems.particle.builder.WorldParticleBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionact(Consumer<WorldParticleBuilder> particleBuilderConsumer) addMotion(double vx, double vy, double vz) addMotion(net.minecraft.world.phys.Vec3 motion) addMotion(org.joml.Vector3f motion) addRenderActor(Consumer<LodestoneWorldParticle> particleActor) addSpawnActor(Consumer<LodestoneWorldParticle> particleActor) addTickActor(Consumer<LodestoneWorldParticle> particleActor) static WorldParticleBuildercreate(Supplier<? extends LodestoneWorldParticleType> particle) static WorldParticleBuildercreate(Supplier<? extends LodestoneWorldParticleType> particle, LodestoneBehaviorComponent behavior) static WorldParticleBuildercreate(WorldParticleOptions options) static WorldParticleBuildercreate(LodestoneWorldParticleType particle) static WorldParticleBuildercreate(LodestoneWorldParticleType particle, LodestoneBehaviorComponent behavior) 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) <T extends LodestoneBehaviorComponent>
Optional<T> getBehaviorComponent(Class<T> targetClass) getBehaviorComponent(Class<T> targetClass, Function<WorldParticleOptions, T> componentSupplier) <T extends LodestoneBehaviorComponent>
Optional<GenericParticleData> getBehaviorData(Class<T> targetClass, Function<T, GenericParticleData> dataFunction) <T extends LodestoneBehaviorComponent>
WorldParticleBuildermodifyBehavior(Class<T> targetClass, Consumer<T> behaviorConsumer) <T extends LodestoneBehaviorComponent>
WorldParticleBuildermodifyBehaviorData(Class<T> targetClass, Function<T, GenericParticleData> dataGetter, Consumer<GenericParticleData> dataConsumer) modifyColorData(Consumer<ColorParticleData> dataConsumer) final WorldParticleBuildermodifyData(Collection<Supplier<GenericParticleData>> dataTypes, Consumer<GenericParticleData> dataConsumer) modifyData(Function<WorldParticleBuilder, GenericParticleData> dataType, Consumer<GenericParticleData> dataConsumer) modifyData(Supplier<GenericParticleData> dataType, Consumer<GenericParticleData> dataConsumer) modifyData(GenericParticleData dataType, Consumer<GenericParticleData> dataConsumer) modifyFriction(Function<Float, Supplier<Float>> GravityReplacement) modifyGravity(Function<Float, Supplier<Float>> gravityReplacement) modifyLifeDelay(Function<Integer, Supplier<Integer>> lifeDelayReplacement) modifyLifetime(Function<Integer, Supplier<Integer>> lifetimeReplacement) modifyOptionalData(Function<WorldParticleBuilder, Optional<GenericParticleData>> dataType, Consumer<GenericParticleData> dataConsumer) modifyOptionalData(Optional<GenericParticleData> dataType, Consumer<GenericParticleData> dataConsumer) multiplyFriction(float GravityMultiplier) multiplyGravity(float gravityMultiplier) multiplyLifeDelay(float lifeDelayMultiplier) multiplyLifetime(float lifetimeMultiplier) 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) <T extends LodestoneBehaviorComponent>
WorldParticleBuilderreplaceExistingBehavior(Class<T> targetClass, Function<T, LodestoneBehaviorComponent> behaviorFunction) setBehavior(LodestoneBehaviorComponent behaviorComponent) setColorData(ColorParticleData colorData) setDiscardFunction(SimpleParticleOptions.ParticleDiscardFunctionType discardFunctionType) setForceSpawn(boolean forceSpawn) setFrictionStrength(float Gravity) setFrictionStrength(Supplier<Float> GravityStrengthSupplier) setGravityStrength(float gravity) setGravityStrength(Supplier<Float> gravityStrengthSupplier) setLifeDelay(int lifeDelay) setLifeDelay(Supplier<Integer> lifeDelaySupplier) setLifetime(int lifetime) setLifetime(Supplier<Integer> lifetimeSupplier) setLightLevel(int particleLight) setMotion(double vx, double vy, double vz) setMotion(net.minecraft.world.phys.Vec3 motion) setMotion(org.joml.Vector3f motion) setNoClip(boolean noClip) 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) setRenderTarget(RenderHandler.LodestoneRenderLayer renderLayer) setRenderType(net.minecraft.client.particle.ParticleRenderType renderType) setScaleData(GenericParticleData scaleData) setShouldCull(boolean shouldCull) 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) Methods inherited from class team.lodestar.lodestone.systems.particle.builder.AbstractParticleBuilder
getColorData, getScaleData, getSpinData, getTransparencyData
-
Constructor Details
-
WorldParticleBuilder
-
-
Method Details
-
create
-
create
public static WorldParticleBuilder create(LodestoneWorldParticleType particle, LodestoneBehaviorComponent behavior) -
create
-
create
public static WorldParticleBuilder create(Supplier<? extends LodestoneWorldParticleType> particle, LodestoneBehaviorComponent behavior) -
create
-
getParticleOptions
- Specified by:
getParticleOptionsin classAbstractParticleBuilder<WorldParticleOptions>
-
setBehavior
-
getBehaviorComponent
public <T extends LodestoneBehaviorComponent> Optional<T> getBehaviorComponent(Class<T> targetClass) -
getBehaviorData
public <T extends LodestoneBehaviorComponent> Optional<GenericParticleData> getBehaviorData(Class<T> targetClass, Function<T, GenericParticleData> dataFunction) -
getBehaviorComponent
public <T extends LodestoneBehaviorComponent> Optional<LodestoneBehaviorComponent> getBehaviorComponent(Class<T> targetClass, Function<WorldParticleOptions, T> componentSupplier) -
replaceExistingBehavior
public <T extends LodestoneBehaviorComponent> WorldParticleBuilder replaceExistingBehavior(Class<T> targetClass, Function<T, LodestoneBehaviorComponent> behaviorFunction) -
modifyBehaviorData
public <T extends LodestoneBehaviorComponent> WorldParticleBuilder modifyBehaviorData(Class<T> targetClass, Function<T, GenericParticleData> dataGetter, Consumer<GenericParticleData> dataConsumer) -
modifyBehavior
public <T extends LodestoneBehaviorComponent> WorldParticleBuilder modifyBehavior(Class<T> targetClass, Consumer<T> behaviorConsumer) -
modifyData
public WorldParticleBuilder modifyData(GenericParticleData dataType, Consumer<GenericParticleData> dataConsumer) -
modifyData
public WorldParticleBuilder modifyData(Supplier<GenericParticleData> dataType, Consumer<GenericParticleData> dataConsumer) -
modifyData
public WorldParticleBuilder modifyData(Function<WorldParticleBuilder, GenericParticleData> dataType, Consumer<GenericParticleData> dataConsumer) -
modifyOptionalData
public WorldParticleBuilder modifyOptionalData(Optional<GenericParticleData> dataType, Consumer<GenericParticleData> dataConsumer) -
modifyOptionalData
public WorldParticleBuilder modifyOptionalData(Function<WorldParticleBuilder, Optional<GenericParticleData>> dataType, Consumer<GenericParticleData> dataConsumer) -
modifyData
public final WorldParticleBuilder modifyData(Collection<Supplier<GenericParticleData>> dataTypes, Consumer<GenericParticleData> dataConsumer) -
enableNoClip
-
disableNoClip
-
setNoClip
-
setRenderType
public WorldParticleBuilder setRenderType(net.minecraft.client.particle.ParticleRenderType renderType) -
setRenderTarget
-
enableForcedSpawn
-
disableForcedSpawn
-
setForceSpawn
-
enableCull
-
disableCull
-
setShouldCull
-
setRandomMotion
-
setRandomMotion
-
setRandomMotion
-
addMotion
-
addMotion
-
addMotion
-
setMotion
-
setMotion
-
setMotion
-
setRandomOffset
-
setRandomOffset
-
setRandomOffset
-
act
-
addTickActor
-
addSpawnActor
-
addRenderActor
-
clearActors
-
clearTickActor
-
clearSpawnActors
-
clearRenderActors
-
setNaturalLighting
-
setFullBrightLighting
-
setLightLevel
-
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) -
modifyColorData
- Overrides:
modifyColorDatain classAbstractParticleBuilder<WorldParticleOptions>
-
setColorData
- Overrides:
setColorDatain classAbstractParticleBuilder<WorldParticleOptions>
-
setScaleData
- Overrides:
setScaleDatain classAbstractParticleBuilder<WorldParticleOptions>
-
setTransparencyData
- Overrides:
setTransparencyDatain classAbstractParticleBuilder<WorldParticleOptions>
-
setSpinData
- Overrides:
setSpinDatain classAbstractParticleBuilder<WorldParticleOptions>
-
multiplyGravity
- Overrides:
multiplyGravityin classAbstractParticleBuilder<WorldParticleOptions>
-
modifyGravity
- Overrides:
modifyGravityin classAbstractParticleBuilder<WorldParticleOptions>
-
setGravityStrength
- Overrides:
setGravityStrengthin classAbstractParticleBuilder<WorldParticleOptions>
-
setGravityStrength
- Overrides:
setGravityStrengthin classAbstractParticleBuilder<WorldParticleOptions>
-
multiplyFriction
- Overrides:
multiplyFrictionin classAbstractParticleBuilder<WorldParticleOptions>
-
modifyFriction
- Overrides:
modifyFrictionin classAbstractParticleBuilder<WorldParticleOptions>
-
setFrictionStrength
- Overrides:
setFrictionStrengthin classAbstractParticleBuilder<WorldParticleOptions>
-
setFrictionStrength
- Overrides:
setFrictionStrengthin classAbstractParticleBuilder<WorldParticleOptions>
-
multiplyLifetime
- Overrides:
multiplyLifetimein classAbstractParticleBuilder<WorldParticleOptions>
-
modifyLifetime
- Overrides:
modifyLifetimein classAbstractParticleBuilder<WorldParticleOptions>
-
setLifetime
- Overrides:
setLifetimein classAbstractParticleBuilder<WorldParticleOptions>
-
setLifetime
- Overrides:
setLifetimein classAbstractParticleBuilder<WorldParticleOptions>
-
multiplyLifeDelay
- Overrides:
multiplyLifeDelayin classAbstractParticleBuilder<WorldParticleOptions>
-
modifyLifeDelay
public WorldParticleBuilder modifyLifeDelay(Function<Integer, Supplier<Integer>> lifeDelayReplacement) - Overrides:
modifyLifeDelayin classAbstractParticleBuilder<WorldParticleOptions>
-
setLifeDelay
- Overrides:
setLifeDelayin classAbstractParticleBuilder<WorldParticleOptions>
-
setLifeDelay
- Overrides:
setLifeDelayin classAbstractParticleBuilder<WorldParticleOptions>
-
setSpritePicker
public WorldParticleBuilder setSpritePicker(SimpleParticleOptions.ParticleSpritePicker spritePicker) - Overrides:
setSpritePickerin classAbstractParticleBuilder<WorldParticleOptions>
-
setDiscardFunction
public WorldParticleBuilder setDiscardFunction(SimpleParticleOptions.ParticleDiscardFunctionType discardFunctionType) - Overrides:
setDiscardFunctionin classAbstractParticleBuilder<WorldParticleOptions>
-