类 Particle

java.lang.Object
net.minecraft.client.particle.Particle
直接已知子类:
ItemPickupParticle, MobAppearanceParticle, NoRenderParticle, SingleQuadParticle

public abstract class Particle extends Object
  • 字段详细资料

    • INITIAL_AABB

      private static final AABB INITIAL_AABB
    • MAXIMUM_COLLISION_VELOCITY_SQUARED

      private static final double MAXIMUM_COLLISION_VELOCITY_SQUARED
    • level

      protected final ClientLevel level
    • xo

      protected double xo
    • yo

      protected double yo
    • zo

      protected double zo
    • x

      protected double x
    • y

      protected double y
    • z

      protected double z
    • xd

      protected double xd
    • yd

      protected double yd
    • zd

      protected double zd
    • bb

      private AABB bb
    • onGround

      protected boolean onGround
    • hasPhysics

      protected boolean hasPhysics
    • stoppedByCollision

      private boolean stoppedByCollision
    • removed

      protected boolean removed
    • bbWidth

      protected float bbWidth
    • bbHeight

      protected float bbHeight
    • random

      protected final RandomSource random
    • age

      protected int age
    • lifetime

      protected int lifetime
    • gravity

      protected float gravity
    • rCol

      protected float rCol
    • gCol

      protected float gCol
    • bCol

      protected float bCol
    • alpha

      protected float alpha
    • roll

      protected float roll
    • oRoll

      protected float oRoll
    • friction

      protected float friction
    • speedUpWhenYMotionIsBlocked

      protected boolean speedUpWhenYMotionIsBlocked
  • 构造器详细资料

    • Particle

      protected Particle(ClientLevel pLevel, double pX, double pY, double pZ)
    • Particle

      public Particle(ClientLevel pLevel, double pX, double pY, double pZ, double pXSpeed, double pYSpeed, double pZSpeed)
  • 方法详细资料

    • setPower

      public Particle setPower(float pMultiplier)
    • setParticleSpeed

      public void setParticleSpeed(double pXd, double pYd, double pZd)
    • scale

      public Particle scale(float pScale)
    • setColor

      public void setColor(float pParticleRed, float pParticleGreen, float pParticleBlue)
    • setAlpha

      protected void setAlpha(float pAlpha)
    • setLifetime

      public void setLifetime(int pParticleLifeTime)
    • getLifetime

      public int getLifetime()
    • tick

      public void tick()
    • render

      public abstract void render(VertexConsumer pBuffer, Camera pRenderInfo, float pPartialTicks)
    • getRenderType

      public abstract ParticleRenderType getRenderType()
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • remove

      public void remove()
    • setSize

      protected void setSize(float pWidth, float pHeight)
    • setPos

      public void setPos(double pX, double pY, double pZ)
    • move

      public void move(double pX, double pY, double pZ)
    • setLocationFromBoundingbox

      protected void setLocationFromBoundingbox()
    • getLightColor

      protected int getLightColor(float pPartialTick)
    • isAlive

      public boolean isAlive()
    • getBoundingBox

      public AABB getBoundingBox()
    • setBoundingBox

      public void setBoundingBox(AABB pBb)
    • getParticleGroup

      public Optional<ParticleGroup> getParticleGroup()
    • shouldCull

      public boolean shouldCull()
      Forge added method that controls if a particle should be culled to it's bounding box. Default behaviour is culling enabled
    • getPos

      public Vec3 getPos()