Class InitialVelocityModuleData
java.lang.Object
foundry.veil.api.quasar.data.module.init.InitialVelocityModuleData
- All Implemented Interfaces:
EditorAttributeProvider,ParticleModuleData
public final class InitialVelocityModuleData
extends Object
implements ParticleModuleData, EditorAttributeProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<InitialVelocityModuleData> Fields inherited from interface foundry.veil.api.quasar.data.module.ParticleModuleData
DIRECT_CODEC, INIT_CODEC, INIT_DIRECT_CODEC, RENDER_CODEC, RENDER_DIRECT_CODEC, UPDATE_CODEC, UPDATE_DIRECT_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionInitialVelocityModuleData(org.joml.Vector3dc velocityDirection, boolean takesParentRotation, float strength) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddModules(ParticleModuleSet.Builder builder) ModuleType<?> getType()voidRenders all ImGui attributes into the current editor panel.floatstrength()booleanorg.joml.Vector3dc
-
Field Details
-
CODEC
-
-
Constructor Details
-
InitialVelocityModuleData
public InitialVelocityModuleData(org.joml.Vector3dc velocityDirection, boolean takesParentRotation, float strength)
-
-
Method Details
-
addModules
- Specified by:
addModulesin interfaceParticleModuleData
-
getType
- Specified by:
getTypein interfaceParticleModuleData
-
renderImGuiAttributes
public void renderImGuiAttributes()Description copied from interface:EditorAttributeProviderRenders all ImGui attributes into the current editor panel.- Specified by:
renderImGuiAttributesin interfaceEditorAttributeProvider
-
velocityDirection
public org.joml.Vector3dc velocityDirection() -
takesParentRotation
public boolean takesParentRotation() -
strength
public float strength()
-