类 ParticleEmitterInfo
java.lang.Object
mod.chloeprime.aaaparticles.api.common.ParticleEmitterInfo
- 所有已实现的接口:
Cloneable
- 直接已知子类:
S2CAddParticle
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明protected intfinal net.minecraft.resources.ResourceLocationfinal net.minecraft.resources.ResourceLocationprotected doubleprotected doubleprotected doubleprotected intprotected final List<DynamicParameter> protected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected floatprotected final it.unimi.dsi.fastutil.ints.IntListprotected doubleprotected doubleprotected double -
构造器概要
构造器构造器说明ParticleEmitterInfo(net.minecraft.network.FriendlyByteBuf buf) ParticleEmitterInfo(net.minecraft.resources.ResourceLocation effek) ParticleEmitterInfo(net.minecraft.resources.ResourceLocation effek, net.minecraft.resources.ResourceLocation emitter) -
方法概要
修饰符和类型方法说明bindOnEntity(net.minecraft.world.entity.Entity entity) clone()voidcopyTo(ParticleEmitterInfo target) static ParticleEmitterInfocreate(net.minecraft.world.level.Level level, net.minecraft.resources.ResourceLocation location) Create a packet when on logic server, with an anonymous emitter that can't be referenced later.static ParticleEmitterInfocreate(net.minecraft.world.level.Level level, net.minecraft.resources.ResourceLocation location, net.minecraft.resources.ResourceLocation emitterName) Create a packet when on logic server, with a named emitter that can be referenced later.voidencode(net.minecraft.network.FriendlyByteBuf buf) entitySpaceRelativePosition(double x, double y, double z) Set relative position in entity space.entitySpaceRelativePosition(net.minecraft.world.phys.Vec3 pos) Set relative position in entity space.Optional<net.minecraft.world.entity.Entity> getBoundEntity(net.minecraft.world.level.Level level) final booleanfinal booleanfinal booleanfinal booleanfinal booleanSet whether position and rotation are in entity space.final booleanfinal booleanfinal booleanfinal booleanparameter(int index, float value) final net.minecraft.world.phys.Vec3position()position(double x, double y, double z) Set position.position(net.minecraft.world.phys.Vec3 pos) Set position.final net.minecraft.world.phys.Vec3rotation()rotation(float x, float y, float z) Set rotation in radians.
Euler order is YXZ.rotation(net.minecraft.world.phys.Vec2 rot) Set rotation in radians.
Euler order is YXZrotationFromForward(net.minecraft.world.phys.Vec3 forward) Set rotation from a forward vector.rotationFromForward(net.minecraft.world.phys.Vec3 forward, float rotZ) Set rotation from a forward vector.final net.minecraft.world.phys.Vec3scale()scale(float scale) Set scale of this emitter.scale(float x, float y, float z) Set scale of this emitter.voidspawnInWorld(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player) final floatspeed()speed(float speed) Set relative play speed of this emitter.trigger(int index) useEntityHeadSpace(boolean value) Set whether to use bound entity's velocity direction as the emitter's rotation.useEntityVelocityAsRotation(boolean value) Set whether to use bound entity's velocity direction as the emitter's rotation.final booleanfinal boolean
-
字段详细资料
-
effek
public final net.minecraft.resources.ResourceLocation effek -
emitter
public final net.minecraft.resources.ResourceLocation emitter -
flags
protected int flags -
x
protected double x -
y
protected double y -
z
protected double z -
rotX
protected float rotX -
rotY
protected float rotY -
rotZ
protected float rotZ -
scaleX
protected float scaleX -
scaleY
protected float scaleY -
scaleZ
protected float scaleZ -
speed
protected float speed -
esX
protected double esX -
esY
protected double esY -
esZ
protected double esZ -
boundEntity
protected int boundEntity -
parameters
-
triggers
protected final it.unimi.dsi.fastutil.ints.IntList triggers
-
-
构造器详细资料
-
ParticleEmitterInfo
@Internal public ParticleEmitterInfo(net.minecraft.resources.ResourceLocation effek) - 另请参阅:
-
ParticleEmitterInfo
@Internal public ParticleEmitterInfo(net.minecraft.resources.ResourceLocation effek, net.minecraft.resources.ResourceLocation emitter) - 另请参阅:
-
ParticleEmitterInfo
public ParticleEmitterInfo(net.minecraft.network.FriendlyByteBuf buf)
-
-
方法详细资料
-
create
public static ParticleEmitterInfo create(net.minecraft.world.level.Level level, net.minecraft.resources.ResourceLocation location) Create a packet when on logic server, with an anonymous emitter that can't be referenced later. -
create
public static ParticleEmitterInfo create(net.minecraft.world.level.Level level, net.minecraft.resources.ResourceLocation location, net.minecraft.resources.ResourceLocation emitterName) Create a packet when on logic server, with a named emitter that can be referenced later. -
clone
-
hasEmitter
public final boolean hasEmitter() -
isPositionSet
public final boolean isPositionSet() -
isRotationSet
public final boolean isRotationSet() -
isScaleSet
public final boolean isScaleSet() -
isSpeedSet
public final boolean isSpeedSet()- 从以下版本开始:
- 2.0.0
-
hasParameters
public final boolean hasParameters() -
hasTriggers
public final boolean hasTriggers() -
hasBoundEntity
public final boolean hasBoundEntity() -
isEntitySpaceRelativePosSet
public final boolean isEntitySpaceRelativePosSet()Set whether position and rotation are in entity space.- 返回:
- True if coordinates are in entity space, otherwise in world space.
-
usingEntityHeadSpace
public final boolean usingEntityHeadSpace() -
usingEntityVelocityAsRotation
public final boolean usingEntityVelocityAsRotation() -
position
Set position.
Will be relative position (in world space) ifhasBoundEntity()- 参数:
pos- Relative/Absolute position- 返回:
- self
- 另请参阅:
-
position
Set position.
Will be relative position ifhasBoundEntity()- 参数:
x- X positiony- Y positionz- Z position- 返回:
- self
-
rotation
Set rotation in radians.
Euler order is YXZ- 参数:
rot- rotation vector(x, y), in radians- 返回:
- self
-
rotationFromForward
Set rotation from a forward vector. This method considers +Z in Effekseer editor as forward.- 参数:
forward- the forward vector, does not need to be normalized.- 返回:
- self
- 从以下版本开始:
- 2.1.0
-
rotationFromForward
Set rotation from a forward vector. This method considers +Z in Effekseer editor as forward.- 参数:
forward- the forward vector, does not need to be normalized.rotZ- Z axis rotation.- 返回:
- self
- 从以下版本开始:
- 2.1.0
-
rotation
Set rotation in radians.
Euler order is YXZ.- 参数:
x- X rotation, in radiansy- Y rotation, in radiansz- Z rotation, in radians- 返回:
- self
-
scale
Set scale of this emitter.- 参数:
scale- scale value.- 返回:
- self
-
scale
Set scale of this emitter.- 参数:
x- X-axis scale value.y- y-axis scale value.z- Z-axis scale value.- 返回:
- self
-
speed
Set relative play speed of this emitter.WARNING: Effekseer effects are baked as 60 frames (by default), and changing this value to lower than
1may look lagged / stepped.To fix this problem, you should set the play speed in your Effekseer editor as the slowest desired play speed, and call this method with the argument value not lesser than
1, up to your max desired relative play speed.WARNING: Do not set speed on long-time emitters. Emitters with relative speed other than
1(default) will increase performance cost by time, until it has been stopped.- 参数:
speed- relative speed.- 从以下版本开始:
- 2.0.0
-
parameter
-
trigger
-
bindOnEntity
-
entitySpaceRelativePosition
Set relative position in entity space.
Will be relative position (in world space) ifhasBoundEntity()- 参数:
pos- Relative position in entity space- 返回:
- self
-
entitySpaceRelativePosition
Set relative position in entity space.
Will be relative position (in world space) ifhasBoundEntity()- 参数:
x- Relative X position in entity spacey- Relative Y position in entity spacez- Relative Z position in entity space- 返回:
- self
-
useEntityHeadSpace
-
useEntityHeadSpace
-
useEntityVelocityAsRotation
Set whether to use bound entity's velocity direction as the emitter's rotation.- 返回:
- self
- 从以下版本开始:
- 2.1.0
-
useEntityVelocityAsRotation
Set whether to use bound entity's velocity direction as the emitter's rotation. Useful for effeks bound to projectiles.- 参数:
value- whether this flag is set to true- 返回:
- self
- 从以下版本开始:
- 2.1.0
-
position
public final net.minecraft.world.phys.Vec3 position() -
rotation
public final net.minecraft.world.phys.Vec3 rotation() -
scale
public final net.minecraft.world.phys.Vec3 scale() -
speed
public final float speed()- 从以下版本开始:
- 2.0.0
-
getBoundEntity
public Optional<net.minecraft.world.entity.Entity> getBoundEntity(net.minecraft.world.level.Level level) -
encode
public void encode(net.minecraft.network.FriendlyByteBuf buf) -
spawnInWorld
@Internal public void spawnInWorld(net.minecraft.world.level.Level level, net.minecraft.world.entity.player.Player player) -
copyTo
-