Package net.minecraft.client.particle
Class ItemPickupParticle
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.ItemPickupParticle
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.particle.Particle
Particle.LifetimeAlpha
-
Field Summary
Modifier and TypeFieldDescriptionprivate final EntityRenderDispatcher
private final Entity
private int
private static final int
private final RenderBuffers
private final Entity
private double
private double
private double
private double
private double
private double
-
Constructor Summary
ModifierConstructorDescriptionItemPickupParticle
(EntityRenderDispatcher p_107023_, RenderBuffers p_107024_, ClientLevel p_107025_, Entity p_107026_, Entity p_107027_) private
ItemPickupParticle
(EntityRenderDispatcher p_107029_, RenderBuffers p_107030_, ClientLevel p_107031_, Entity p_107032_, Entity p_107033_, Vec3 p_107034_) -
Method Summary
Modifier and TypeMethodDescriptiongetRenderBoundingBox
(float partialTicks) Returns the bounding box that should be used for particle culling.private Entity
getSafeCopy
(Entity p_107037_) void
render
(VertexConsumer p_107039_, Camera p_107040_, float p_107041_) private void
void
tick()
private void
Methods inherited from class net.minecraft.client.particle.Particle
getBoundingBox, getLifetime, getLightColor, getParticleGroup, getPos, isAlive, move, remove, scale, setAlpha, setBoundingBox, setColor, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, toString
-
Field Details
-
LIFE_TIME
private static final int LIFE_TIME- See Also:
-
renderBuffers
-
itemEntity
-
target
-
life
private int life -
entityRenderDispatcher
-
targetX
private double targetX -
targetY
private double targetY -
targetZ
private double targetZ -
targetXOld
private double targetXOld -
targetYOld
private double targetYOld -
targetZOld
private double targetZOld
-
-
Constructor Details
-
ItemPickupParticle
public ItemPickupParticle(EntityRenderDispatcher p_107023_, RenderBuffers p_107024_, ClientLevel p_107025_, Entity p_107026_, Entity p_107027_) -
ItemPickupParticle
private ItemPickupParticle(EntityRenderDispatcher p_107029_, RenderBuffers p_107030_, ClientLevel p_107031_, Entity p_107032_, Entity p_107033_, Vec3 p_107034_)
-
-
Method Details
-
getSafeCopy
-
getRenderType
- Specified by:
getRenderType
in classParticle
-
render
-
tick
public void tick() -
updatePosition
private void updatePosition() -
saveOldPosition
private void saveOldPosition() -
getRenderBoundingBox
Description copied from class:Particle
Returns the bounding box that should be used for particle culling.AABB.INFINITE
can be returned for particles that should not be culled.- Overrides:
getRenderBoundingBox
in classParticle
-