Class TargetedYPREffect
java.lang.Object
me.emafire003.dev.particleanimationlib.Effect
me.emafire003.dev.particleanimationlib.effects.base.TargetedEffect
me.emafire003.dev.particleanimationlib.effects.base.TargetedYPREffect
- Direct Known Subclasses:
LineEffect
Class used for effects that also require yaw pitch roll values
Note: Roll values are currently unused and won't do anything (version 0.0.1)
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloatfloatfloatbooleanfloatfloatFields inherited from class me.emafire003.dev.particleanimationlib.effects.base.TargetedEffect
entityTarget, targetOffset, targetPos, updateTargetPositions, useEyePosAsTargetFields inherited from class me.emafire003.dev.particleanimationlib.Effect
delay, done, entityOrigin, executeOnStop, forced, iterations, limitParticlesEveryNIterations, originOffset, originPos, particle, particleLimit, shouldLimitParticlesEveryNIterations, shouldLimitParticlesSpawnedPerIteration, shouldSpawnParticlesEveryNIteration, spawnParticlesEveryNIteration, ticks, type, updatePositions, useEyePosAsOrigin, world -
Constructor Summary
ConstructorsConstructorDescriptionTargetedYPREffect(net.minecraft.server.world.ServerWorld world, EffectType type, net.minecraft.particle.ParticleEffect particle, net.minecraft.util.math.Vec3d originPos) -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidcopy(TargetedYPREffect original, TargetedYPREffect copy) @NotNull net.minecraft.util.math.Vec3dfloatgetPitch()floatfloatgetRoll()floatbooleanfloatgetYaw()floatvoidsetPitch(float pitch) voidsetPitchOffset(float pitchOffset) voidsetRoll(float roll) voidsetRollOffset(float rollOffset) voidsetShouldUpdateYPR(boolean shouldUpdateYPR) Should the Yaw Pitch and Roll also be updated when updating positions?voidsetYaw(float yaw) voidsetYawOffset(float yawOffset) voidMethods inherited from class me.emafire003.dev.particleanimationlib.effects.base.TargetedEffect
copy, getEntityTarget, getTargetOffset, getTargetPos, isUpdateTargetPositions, isUseEyePosAsTarget, setEntityTarget, setTargetOffset, setTargetPos, setUpdateTargetPositions, setUseEyePosAsTarget, shouldUpdateTargetPositionsMethods inherited from class me.emafire003.dev.particleanimationlib.Effect
copy, displayParticle, displayParticle, displayParticle, getDelay, getEntityOrigin, getExecuteOnStop, getIterations, getLimitParticlesEveryNIterations, getOriginOffset, getOriginPos, getParticle, getParticleLimit, getSpawnParticlesEveryNIteration, getType, getWorld, getWorldRegistryKey, isForced, isUpdatePositions, isUseEyePosAsOrigin, onRun, onStop, run, run, runFor, runFor, setDelay, setEntityOrigin, setExecuteOnStop, setForced, setIterations, setLimitParticlesEveryNIterations, setOriginOffset, setOriginPos, setParticle, setParticleLimit, setShouldLimitParticlesEveryNIterations, setShouldLimitParticlesSpawnedPerIteration, setShouldSpawnParticlesEveryNIteration, setSpawnParticlesEveryNIteration, setUpdatePositions, setUseEyePosAsOrigin, setWorld, shouldLimitParticlesEveryNIterations, shouldLimitParticlesSpawnedPerIteration, shouldSpawnParticlesEveryNIteration
-
Field Details
-
yawOffset
public float yawOffset -
pitchOffset
public float pitchOffset -
yaw
public float yaw -
pitch
public float pitch -
roll
public float roll -
rollOffset
public float rollOffset -
shouldUpdateYPR
public boolean shouldUpdateYPR
-
-
Constructor Details
-
TargetedYPREffect
public TargetedYPREffect(net.minecraft.server.world.ServerWorld world, EffectType type, net.minecraft.particle.ParticleEffect particle, net.minecraft.util.math.Vec3d originPos)
-
-
Method Details
-
copy
-
updatePos
public void updatePos()- Overrides:
updatePosin classTargetedEffect
-
getShouldUpdateYPR
public boolean getShouldUpdateYPR() -
setShouldUpdateYPR
public void setShouldUpdateYPR(boolean shouldUpdateYPR) Should the Yaw Pitch and Roll also be updated when updating positions?- Parameters:
shouldUpdateYPR- True if you want to update yaw pitch roll values
-
getYawOffset
public float getYawOffset() -
setYawOffset
public void setYawOffset(float yawOffset) -
getPitchOffset
public float getPitchOffset() -
setPitchOffset
public void setPitchOffset(float pitchOffset) -
getYaw
public float getYaw() -
setYaw
public void setYaw(float yaw) -
getPitch
public float getPitch() -
setPitch
public void setPitch(float pitch) -
getRoll
public float getRoll() -
setRoll
public void setRoll(float roll) -
getRollOffset
public float getRollOffset() -
setRollOffset
public void setRollOffset(float rollOffset) -
getDirection
@NotNull public @NotNull net.minecraft.util.math.Vec3d getDirection()
-