类 VanillaParticleProxy
java.lang.Object
net.minecraft.client.particle.Particle
mod.chloeprime.aaaparticles.api.client.util.VanillaParticleProxy
@Experimental
public class VanillaParticleProxy
extends net.minecraft.client.particle.Particle
A vanilla particle that plays and holds an Effek emitter.
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.client.particle.Particle
net.minecraft.client.particle.Particle.LifetimeAlpha -
字段概要
从类继承的字段 net.minecraft.client.particle.Particle
alpha, bbHeight, bbWidth, bCol, friction, gCol, gravity, hasPhysics, level, lifetime, onGround, oRoll, random, rCol, removed, roll, speedUpWhenYMotionIsBlocked, x, xd, xo, y, yd, yo, z, zd, zo -
构造器概要
构造器构造器说明VanillaParticleProxy(net.minecraft.resources.ResourceLocation effekId, net.minecraft.client.multiplayer.ClientLevel level, double x, double y, double z, double dx, double dy, double dz) Create a new instance of VanillaParticleProxy. -
方法概要
修饰符和类型方法说明net.minecraft.resources.ResourceLocationGet the effek id of this particle.Get the future of effek emitter of this particle.@NotNull net.minecraft.client.particle.ParticleRenderTypevoidmove()Override tick and call this if you want to make this emitter move.voidrender(com.mojang.blaze3d.vertex.VertexConsumer buffer, net.minecraft.client.Camera camera, float partialTicks) voidtick()从类继承的方法 net.minecraft.client.particle.Particle
getBoundingBox, getLifetime, getLightColor, getParticleGroup, getPos, getRenderBoundingBox, isAlive, move, remove, scale, setAlpha, setBoundingBox, setColor, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, toString
-
构造器详细资料
-
VanillaParticleProxy
public VanillaParticleProxy(net.minecraft.resources.ResourceLocation effekId, net.minecraft.client.multiplayer.ClientLevel level, double x, double y, double z, double dx, double dy, double dz) Create a new instance of VanillaParticleProxy.- 参数:
effekId- The Effek id.level- The client level instance.x- X positiony- Y positionz- Z positiondx- Vanilla X speed.dy- Vanilla Y speed.dz- Vanilla Z speed.- 从以下版本开始:
- 2.0.1 this constructor is public.
-
-
方法详细资料
-
getEffekId
public net.minecraft.resources.ResourceLocation getEffekId()Get the effek id of this particle.- 返回:
- the effek id of this particle.
-
getEmitter
Get the future of effek emitter of this particle.- 返回:
- the future of the effek emitter of this particle.
- 从以下版本开始:
- 2.0.1
- Implementation Note:
- Effeks are loaded synchronized, immediately during constructor in MC versions below 26.2.
-
move
public void move()Override tick and call this if you want to make this emitter move. -
tick
public void tick()- 覆盖:
tick在类中net.minecraft.client.particle.Particle
-
render
@ParametersAreNonnullByDefault public void render(com.mojang.blaze3d.vertex.VertexConsumer buffer, net.minecraft.client.Camera camera, float partialTicks) - 指定者:
render在类中net.minecraft.client.particle.Particle
-
getRenderType
@NotNull public @NotNull net.minecraft.client.particle.ParticleRenderType getRenderType()- 指定者:
getRenderType在类中net.minecraft.client.particle.Particle
-