Package net.minecraft.client.particle
Class PortalParticle
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.BillboardParticle
net.minecraft.client.particle.SpriteBillboardParticle
net.minecraft.client.particle.PortalParticle
- Direct Known Subclasses:
ReversePortalParticle
- Mappings:
Namespace Name official frb
intermediary net/minecraft/class_709
named net/minecraft/client/particle/PortalParticle
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.particle.BillboardParticle
BillboardParticle.Rotator
-
Field Summary
Modifier and TypeFieldDescriptionprivate final double
private final double
private final double
Fields inherited from class net.minecraft.client.particle.SpriteBillboardParticle
sprite
Fields inherited from class net.minecraft.client.particle.BillboardParticle
scale
Fields inherited from class net.minecraft.client.particle.Particle
age, alpha, angle, ascending, blue, collidesWithWorld, dead, gravityStrength, green, maxAge, onGround, prevAngle, prevPosX, prevPosY, prevPosZ, random, red, spacingXZ, spacingY, velocityMultiplier, velocityX, velocityY, velocityZ, world, x, y, z
-
Constructor Summary
ModifierConstructorDescriptionprotected
PortalParticle
(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) -
Method Summary
Modifier and TypeMethodDescriptionint
getBrightness
(float tint) Returns the packed light level this particle should render at.float
getSize
(float tickDelta) Returns the draw scale of this particle, which is used while rendering inBillboardParticle.buildGeometry(net.minecraft.client.render.VertexConsumer, net.minecraft.client.render.Camera, float)
.getType()
Returns the rendering category this particle is rendered under.void
move
(double dx, double dy, double dz) Moves this particle by the specified delta amounts, re-positioning bounding boxes and adjusting movement for collision with the world.void
tick()
Called each game tick (20 times per second), and should be used to do core particle logic, such as movement and collision.Methods inherited from class net.minecraft.client.particle.SpriteBillboardParticle
getMaxU, getMaxV, getMinU, getMinV, setSprite, setSprite, setSpriteForAge
Methods inherited from class net.minecraft.client.particle.BillboardParticle
buildGeometry, getRotator, scale
Methods inherited from class net.minecraft.client.particle.Particle
getBoundingBox, getGroup, getMaxAge, isAlive, markDead, move, repositionFromBoundingBox, setAlpha, setBoundingBox, setBoundingBoxSpacing, setColor, setMaxAge, setPos, setVelocity, toString
-
Field Details
-
startX
private final double startX- Mappings:
Namespace Name Mixin selector official a
Lfrb;a:D
intermediary field_3886
Lnet/minecraft/class_709;field_3886:D
named startX
Lnet/minecraft/client/particle/PortalParticle;startX:D
-
startY
private final double startY- Mappings:
Namespace Name Mixin selector official b
Lfrb;b:D
intermediary field_3885
Lnet/minecraft/class_709;field_3885:D
named startY
Lnet/minecraft/client/particle/PortalParticle;startY:D
-
startZ
private final double startZ- Mappings:
Namespace Name Mixin selector official F
Lfrb;F:D
intermediary field_3884
Lnet/minecraft/class_709;field_3884:D
named startZ
Lnet/minecraft/client/particle/PortalParticle;startZ:D
-
-
Constructor Details
-
PortalParticle
protected PortalParticle(ClientWorld world, double x, double y, double z, double velocityX, double velocityY, double velocityZ) - Mappings:
Namespace Name Mixin selector official <init>
Lfqv;<init>(Lfns;DDDDDD)V
intermediary <init>
Lnet/minecraft/class_703;<init>(Lnet/minecraft/class_638;DDDDDD)V
named <init>
Lnet/minecraft/client/particle/Particle;<init>(Lnet/minecraft/client/world/ClientWorld;DDDDDD)V
-
-
Method Details
-
getType
Returns the rendering category this particle is rendered under.For more information on the properties and types available to each
Particle
, visitParticleTextureSheet
.- Specified by:
getType
in classParticle
- Returns:
- the rendering category this particle is rendered under
- Mappings:
Namespace Name Mixin selector official b
Lfqv;b()Lfqz;
intermediary method_18122
Lnet/minecraft/class_703;method_18122()Lnet/minecraft/class_3999;
named getType
Lnet/minecraft/client/particle/Particle;getType()Lnet/minecraft/client/particle/ParticleTextureSheet;
-
move
public void move(double dx, double dy, double dz) Moves this particle by the specified delta amounts, re-positioning bounding boxes and adjusting movement for collision with the world.- Overrides:
move
in classParticle
- Parameters:
dx
- the delta x to move this particle bydy
- the delta y to move this particle bydz
- the delta z to move this particle by- Mappings:
Namespace Name Mixin selector official a
Lfqv;a(DDD)V
intermediary method_3069
Lnet/minecraft/class_703;method_3069(DDD)V
named move
Lnet/minecraft/client/particle/Particle;move(DDD)V
-
getSize
public float getSize(float tickDelta) Returns the draw scale of this particle, which is used while rendering inBillboardParticle.buildGeometry(net.minecraft.client.render.VertexConsumer, net.minecraft.client.render.Camera, float)
.- Overrides:
getSize
in classBillboardParticle
- Returns:
- the draw scale of this particle, which is used while rendering in
BillboardParticle.buildGeometry(net.minecraft.client.render.VertexConsumer, net.minecraft.client.render.Camera, float)
- Mappings:
Namespace Name Mixin selector official b
Lfri;b(F)F
intermediary method_18132
Lnet/minecraft/class_3940;method_18132(F)F
named getSize
Lnet/minecraft/client/particle/BillboardParticle;getSize(F)F
-
getBrightness
public int getBrightness(float tint) Returns the packed light level this particle should render at.- Overrides:
getBrightness
in classParticle
- Returns:
- the packed light level this particle should render at
- See Also:
- Mappings:
Namespace Name Mixin selector official a
Lfqv;a(F)I
intermediary method_3068
Lnet/minecraft/class_703;method_3068(F)I
named getBrightness
Lnet/minecraft/client/particle/Particle;getBrightness(F)I
-
tick
public void tick()Called each game tick (20 times per second), and should be used to do core particle logic, such as movement and collision.
-