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
FieldsModifier and TypeFieldDescriptionprivate final EntityRenderDispatcher
private final Entity
private int
private static final int
private final Entity
private double
private double
private double
private double
private double
private double
-
Constructor Summary
ConstructorsConstructorDescriptionItemPickupParticle
(EntityRenderDispatcher p_107029_, ClientLevel p_107031_, Entity p_107032_, Entity p_107033_) ItemPickupParticle
(EntityRenderDispatcher p_107023_, ClientLevel p_107025_, Entity p_107026_, Entity p_107027_, Vec3 p_382893_) -
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_) void
renderCustom
(PoseStack p_383231_, MultiBufferSource p_382868_, Camera p_382930_, float p_382826_) 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:
-
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_107029_, ClientLevel p_107031_, Entity p_107032_, Entity p_107033_) -
ItemPickupParticle
public ItemPickupParticle(EntityRenderDispatcher p_107023_, ClientLevel p_107025_, Entity p_107026_, Entity p_107027_, Vec3 p_382893_)
-
-
Method Details
-
getSafeCopy
-
getRenderType
- Specified by:
getRenderType
in classParticle
-
renderCustom
public void renderCustom(PoseStack p_383231_, MultiBufferSource p_382868_, Camera p_382930_, float p_382826_) - Overrides:
renderCustom
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
-