类 Particle
- java.lang.Object
-
- net.minecraft.client.particle.Particle
-
@Environment(CLIENT) public abstract class Particle extends Object
- Mappings:
Namespace Name official ejmintermediary net/minecraft/class_703named net/minecraft/client/particle/Particle
-
-
字段概要
字段 修饰符和类型 字段 说明 protected intageprotected floatangleprivate BoxboundingBoxprotected booleancollidesWithWorldprotected floatcolorAlphaprotected floatcolorBlueprotected floatcolorGreenprotected floatcolorRedprotected booleandeadprivate static BoxEMPTY_BOUNDING_BOXprivate booleanfield_21507protected floatfield_28786protected booleanfield_28787protected floatgravityStrengthprotected intmaxAgeprotected booleanonGroundprotected floatprevAngleprotected doubleprevPosXprotected doubleprevPosYprotected doubleprevPosZprotected Randomrandomprotected floatspacingXZprotected floatspacingYprotected doublevelocityXprotected doublevelocityYprotected doublevelocityZprotected ClientWorldworldprotected doublexprotected doubleyprotected doublez
-
构造器概要
构造器 限定符 构造器 说明 protectedParticle(ClientWorld world, double x, double y, double z)Particle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 abstract voidbuildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta)BoxgetBoundingBox()protected intgetBrightness(float tint)Optional<ParticleGroup>getGroup()Returns the optional group that this particle belongs to.intgetMaxAge()abstract ParticleTextureSheetgetType()booleanisAlive()voidmarkDead()voidmove(double dx, double dy, double dz)Particlemove(float speed)protected voidrepositionFromBoundingBox()Particlescale(float scale)voidsetBoundingBox(Box boundingBox)protected voidsetBoundingBoxSpacing(float spacingXZ, float spacingY)voidsetColor(float red, float green, float blue)protected voidsetColorAlpha(float alpha)voidsetMaxAge(int maxAge)voidsetPos(double x, double y, double z)voidsetVelocity(double velocityX, double velocityY, double velocityZ)voidtick()StringtoString()
-
-
-
字段详细资料
-
EMPTY_BOUNDING_BOX
private static final Box EMPTY_BOUNDING_BOX
- Mappings:
Namespace Name Mixin selector official aLejm;a:Ldlv;intermediary field_3860Lnet/minecraft/class_703;field_3860:Lnet/minecraft/class_238;named EMPTY_BOUNDING_BOXLnet/minecraft/client/particle/Particle;EMPTY_BOUNDING_BOX:Lnet/minecraft/util/math/Box;
-
world
protected final ClientWorld world
- Mappings:
Namespace Name Mixin selector official cLejm;c:Lehx;intermediary field_3851Lnet/minecraft/class_703;field_3851:Lnet/minecraft/class_638;named worldLnet/minecraft/client/particle/Particle;world:Lnet/minecraft/client/world/ClientWorld;
-
prevPosX
protected double prevPosX
- Mappings:
Namespace Name Mixin selector official dLejm;d:Dintermediary field_3858Lnet/minecraft/class_703;field_3858:Dnamed prevPosXLnet/minecraft/client/particle/Particle;prevPosX:D
-
prevPosY
protected double prevPosY
- Mappings:
Namespace Name Mixin selector official eLejm;e:Dintermediary field_3838Lnet/minecraft/class_703;field_3838:Dnamed prevPosYLnet/minecraft/client/particle/Particle;prevPosY:D
-
prevPosZ
protected double prevPosZ
- Mappings:
Namespace Name Mixin selector official fLejm;f:Dintermediary field_3856Lnet/minecraft/class_703;field_3856:Dnamed prevPosZLnet/minecraft/client/particle/Particle;prevPosZ:D
-
x
protected double x
- Mappings:
Namespace Name Mixin selector official gLejm;g:Dintermediary field_3874Lnet/minecraft/class_703;field_3874:Dnamed xLnet/minecraft/client/particle/Particle;x:D
-
y
protected double y
- Mappings:
Namespace Name Mixin selector official hLejm;h:Dintermediary field_3854Lnet/minecraft/class_703;field_3854:Dnamed yLnet/minecraft/client/particle/Particle;y:D
-
z
protected double z
- Mappings:
Namespace Name Mixin selector official iLejm;i:Dintermediary field_3871Lnet/minecraft/class_703;field_3871:Dnamed zLnet/minecraft/client/particle/Particle;z:D
-
velocityX
protected double velocityX
- Mappings:
Namespace Name Mixin selector official jLejm;j:Dintermediary field_3852Lnet/minecraft/class_703;field_3852:Dnamed velocityXLnet/minecraft/client/particle/Particle;velocityX:D
-
velocityY
protected double velocityY
- Mappings:
Namespace Name Mixin selector official kLejm;k:Dintermediary field_3869Lnet/minecraft/class_703;field_3869:Dnamed velocityYLnet/minecraft/client/particle/Particle;velocityY:D
-
velocityZ
protected double velocityZ
- Mappings:
Namespace Name Mixin selector official lLejm;l:Dintermediary field_3850Lnet/minecraft/class_703;field_3850:Dnamed velocityZLnet/minecraft/client/particle/Particle;velocityZ:D
-
boundingBox
private Box boundingBox
- Mappings:
Namespace Name Mixin selector official bLejm;b:Ldlv;intermediary field_3872Lnet/minecraft/class_703;field_3872:Lnet/minecraft/class_238;named boundingBoxLnet/minecraft/client/particle/Particle;boundingBox:Lnet/minecraft/util/math/Box;
-
onGround
protected boolean onGround
- Mappings:
Namespace Name Mixin selector official mLejm;m:Zintermediary field_3845Lnet/minecraft/class_703;field_3845:Znamed onGroundLnet/minecraft/client/particle/Particle;onGround:Z
-
collidesWithWorld
protected boolean collidesWithWorld
- Mappings:
Namespace Name Mixin selector official nLejm;n:Zintermediary field_3862Lnet/minecraft/class_703;field_3862:Znamed collidesWithWorldLnet/minecraft/client/particle/Particle;collidesWithWorld:Z
-
field_21507
private boolean field_21507
- Mappings:
Namespace Name Mixin selector official DLejm;D:Zintermediary field_21507Lnet/minecraft/class_703;field_21507:Znamed field_21507Lnet/minecraft/client/particle/Particle;field_21507:Z
-
dead
protected boolean dead
- Mappings:
Namespace Name Mixin selector official oLejm;o:Zintermediary field_3843Lnet/minecraft/class_703;field_3843:Znamed deadLnet/minecraft/client/particle/Particle;dead:Z
-
spacingXZ
protected float spacingXZ
- Mappings:
Namespace Name Mixin selector official pLejm;p:Fintermediary field_3849Lnet/minecraft/class_703;field_3849:Fnamed spacingXZLnet/minecraft/client/particle/Particle;spacingXZ:F
-
spacingY
protected float spacingY
- Mappings:
Namespace Name Mixin selector official qLejm;q:Fintermediary field_3867Lnet/minecraft/class_703;field_3867:Fnamed spacingYLnet/minecraft/client/particle/Particle;spacingY:F
-
random
protected final Random random
- Mappings:
Namespace Name Mixin selector official rLejm;r:Ljava/util/Random;intermediary field_3840Lnet/minecraft/class_703;field_3840:Ljava/util/Random;named randomLnet/minecraft/client/particle/Particle;random:Ljava/util/Random;
-
age
protected int age
- Mappings:
Namespace Name Mixin selector official sLejm;s:Iintermediary field_3866Lnet/minecraft/class_703;field_3866:Inamed ageLnet/minecraft/client/particle/Particle;age:I
-
maxAge
protected int maxAge
- Mappings:
Namespace Name Mixin selector official tLejm;t:Iintermediary field_3847Lnet/minecraft/class_703;field_3847:Inamed maxAgeLnet/minecraft/client/particle/Particle;maxAge:I
-
gravityStrength
protected float gravityStrength
- Mappings:
Namespace Name Mixin selector official uLejm;u:Fintermediary field_3844Lnet/minecraft/class_703;field_3844:Fnamed gravityStrengthLnet/minecraft/client/particle/Particle;gravityStrength:F
-
colorRed
protected float colorRed
- Mappings:
Namespace Name Mixin selector official vLejm;v:Fintermediary field_3861Lnet/minecraft/class_703;field_3861:Fnamed colorRedLnet/minecraft/client/particle/Particle;colorRed:F
-
colorGreen
protected float colorGreen
- Mappings:
Namespace Name Mixin selector official wLejm;w:Fintermediary field_3842Lnet/minecraft/class_703;field_3842:Fnamed colorGreenLnet/minecraft/client/particle/Particle;colorGreen:F
-
colorBlue
protected float colorBlue
- Mappings:
Namespace Name Mixin selector official xLejm;x:Fintermediary field_3859Lnet/minecraft/class_703;field_3859:Fnamed colorBlueLnet/minecraft/client/particle/Particle;colorBlue:F
-
colorAlpha
protected float colorAlpha
- Mappings:
Namespace Name Mixin selector official yLejm;y:Fintermediary field_3841Lnet/minecraft/class_703;field_3841:Fnamed colorAlphaLnet/minecraft/client/particle/Particle;colorAlpha:F
-
angle
protected float angle
- Mappings:
Namespace Name Mixin selector official zLejm;z:Fintermediary field_3839Lnet/minecraft/class_703;field_3839:Fnamed angleLnet/minecraft/client/particle/Particle;angle:F
-
prevAngle
protected float prevAngle
- Mappings:
Namespace Name Mixin selector official ALejm;A:Fintermediary field_3857Lnet/minecraft/class_703;field_3857:Fnamed prevAngleLnet/minecraft/client/particle/Particle;prevAngle:F
-
field_28786
protected float field_28786
- Mappings:
Namespace Name Mixin selector official BLejm;B:Fintermediary field_28786Lnet/minecraft/class_703;field_28786:Fnamed field_28786Lnet/minecraft/client/particle/Particle;field_28786:F
-
field_28787
protected boolean field_28787
- Mappings:
Namespace Name Mixin selector official CLejm;C:Zintermediary field_28787Lnet/minecraft/class_703;field_28787:Znamed field_28787Lnet/minecraft/client/particle/Particle;field_28787:Z
-
-
构造器详细资料
-
Particle
protected Particle(ClientWorld world, double x, double y, double z)
- Mappings:
Namespace Name Mixin selector official <init>Lejm;<init>(Lehx;DDD)Vintermediary <init>Lnet/minecraft/class_703;<init>(Lnet/minecraft/class_638;DDD)Vnamed <init>Lnet/minecraft/client/particle/Particle;<init>(Lnet/minecraft/client/world/ClientWorld;DDD)V
-
Particle
public Particle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ)
- Mappings:
Namespace Name Mixin selector official <init>Lejm;<init>(Lehx;DDDDDD)Vintermediary <init>Lnet/minecraft/class_703;<init>(Lnet/minecraft/class_638;DDDDDD)Vnamed <init>Lnet/minecraft/client/particle/Particle;<init>(Lnet/minecraft/client/world/ClientWorld;DDDDDD)V
-
-
方法详细资料
-
move
public Particle move(float speed)
- Mappings:
Namespace Name Mixin selector official cLejm;c(F)Lejm;intermediary method_3075Lnet/minecraft/class_703;method_3075(F)Lnet/minecraft/class_703;named moveLnet/minecraft/client/particle/Particle;move(F)Lnet/minecraft/client/particle/Particle;
-
setVelocity
public void setVelocity(double velocityX, double velocityY, double velocityZ)- Mappings:
Namespace Name Mixin selector official bLejm;b(DDD)Vintermediary method_34753Lnet/minecraft/class_703;method_34753(DDD)Vnamed setVelocityLnet/minecraft/client/particle/Particle;setVelocity(DDD)V
-
scale
public Particle scale(float scale)
- Mappings:
Namespace Name Mixin selector official dLejm;d(F)Lejm;intermediary method_3087Lnet/minecraft/class_703;method_3087(F)Lnet/minecraft/class_703;named scaleLnet/minecraft/client/particle/Particle;scale(F)Lnet/minecraft/client/particle/Particle;
-
setColor
public void setColor(float red, float green, float blue)- Mappings:
Namespace Name Mixin selector official aLejm;a(FFF)Vintermediary method_3084Lnet/minecraft/class_703;method_3084(FFF)Vnamed setColorLnet/minecraft/client/particle/Particle;setColor(FFF)V
-
setColorAlpha
protected void setColorAlpha(float alpha)
- Mappings:
Namespace Name Mixin selector official eLejm;e(F)Vintermediary method_3083Lnet/minecraft/class_703;method_3083(F)Vnamed setColorAlphaLnet/minecraft/client/particle/Particle;setColorAlpha(F)V
-
setMaxAge
public void setMaxAge(int maxAge)
- Mappings:
Namespace Name Mixin selector official aLejm;a(I)Vintermediary method_3077Lnet/minecraft/class_703;method_3077(I)Vnamed setMaxAgeLnet/minecraft/client/particle/Particle;setMaxAge(I)V
-
getMaxAge
public int getMaxAge()
- Mappings:
Namespace Name Mixin selector official jLejm;j()Iintermediary method_3082Lnet/minecraft/class_703;method_3082()Inamed getMaxAgeLnet/minecraft/client/particle/Particle;getMaxAge()I
-
tick
public void tick()
- Mappings:
Namespace Name Mixin selector official aLejm;a()Vintermediary method_3070Lnet/minecraft/class_703;method_3070()Vnamed tickLnet/minecraft/client/particle/Particle;tick()V
-
buildGeometry
public abstract void buildGeometry(VertexConsumer vertexConsumer, Camera camera, float tickDelta)
- Mappings:
Namespace Name Mixin selector official aLejm;a(Ldpm;Ldtx;F)Vintermediary method_3074Lnet/minecraft/class_703;method_3074(Lnet/minecraft/class_4588;Lnet/minecraft/class_4184;F)Vnamed buildGeometryLnet/minecraft/client/particle/Particle;buildGeometry(Lnet/minecraft/client/render/VertexConsumer;Lnet/minecraft/client/render/Camera;F)V
-
getType
public abstract ParticleTextureSheet getType()
- Mappings:
Namespace Name Mixin selector official bLejm;b()Lejq;intermediary method_18122Lnet/minecraft/class_703;method_18122()Lnet/minecraft/class_3999;named getTypeLnet/minecraft/client/particle/Particle;getType()Lnet/minecraft/client/particle/ParticleTextureSheet;
-
toString
public String toString()
-
markDead
public void markDead()
- Mappings:
Namespace Name Mixin selector official kLejm;k()Vintermediary method_3085Lnet/minecraft/class_703;method_3085()Vnamed markDeadLnet/minecraft/client/particle/Particle;markDead()V
-
setBoundingBoxSpacing
protected void setBoundingBoxSpacing(float spacingXZ, float spacingY)- Mappings:
Namespace Name Mixin selector official bLejm;b(FF)Vintermediary method_3080Lnet/minecraft/class_703;method_3080(FF)Vnamed setBoundingBoxSpacingLnet/minecraft/client/particle/Particle;setBoundingBoxSpacing(FF)V
-
setPos
public void setPos(double x, double y, double z)- Mappings:
Namespace Name Mixin selector official cLejm;c(DDD)Vintermediary method_3063Lnet/minecraft/class_703;method_3063(DDD)Vnamed setPosLnet/minecraft/client/particle/Particle;setPos(DDD)V
-
move
public void move(double dx, double dy, double dz)- Mappings:
Namespace Name Mixin selector official aLejm;a(DDD)Vintermediary method_3069Lnet/minecraft/class_703;method_3069(DDD)Vnamed moveLnet/minecraft/client/particle/Particle;move(DDD)V
-
repositionFromBoundingBox
protected void repositionFromBoundingBox()
- Mappings:
Namespace Name Mixin selector official lLejm;l()Vintermediary method_3072Lnet/minecraft/class_703;method_3072()Vnamed repositionFromBoundingBoxLnet/minecraft/client/particle/Particle;repositionFromBoundingBox()V
-
getBrightness
protected int getBrightness(float tint)
- Mappings:
Namespace Name Mixin selector official aLejm;a(F)Iintermediary method_3068Lnet/minecraft/class_703;method_3068(F)Inamed getBrightnessLnet/minecraft/client/particle/Particle;getBrightness(F)I
-
isAlive
public boolean isAlive()
- Mappings:
Namespace Name Mixin selector official mLejm;m()Zintermediary method_3086Lnet/minecraft/class_703;method_3086()Znamed isAliveLnet/minecraft/client/particle/Particle;isAlive()Z
-
getBoundingBox
public Box getBoundingBox()
- Mappings:
Namespace Name Mixin selector official nLejm;n()Ldlv;intermediary method_3064Lnet/minecraft/class_703;method_3064()Lnet/minecraft/class_238;named getBoundingBoxLnet/minecraft/client/particle/Particle;getBoundingBox()Lnet/minecraft/util/math/Box;
-
setBoundingBox
public void setBoundingBox(Box boundingBox)
- Mappings:
Namespace Name Mixin selector official aLejm;a(Ldlv;)Vintermediary method_3067Lnet/minecraft/class_703;method_3067(Lnet/minecraft/class_238;)Vnamed setBoundingBoxLnet/minecraft/client/particle/Particle;setBoundingBox(Lnet/minecraft/util/math/Box;)V
-
getGroup
public Optional<ParticleGroup> getGroup()
Returns the optional group that this particle belongs to.A particle group restricts the number of particles from the group that can be rendered in a client world. If the particle does not have a group, it is not restricted.
- Mappings:
Namespace Name Mixin selector official oLejm;o()Ljava/util/Optional;intermediary method_34019Lnet/minecraft/class_703;method_34019()Ljava/util/Optional;named getGroupLnet/minecraft/client/particle/Particle;getGroup()Ljava/util/Optional;
-
-