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 EntityRenderDispatcherprivate final Entityprivate intprivate static final intprivate final RenderBuffersprivate final Entityprivate doubleprivate doubleprivate doubleprivate doubleprivate doubleprivate double -
Constructor Summary
ConstructorsModifierConstructorDescriptionItemPickupParticle(EntityRenderDispatcher p_107023_, RenderBuffers p_107024_, ClientLevel p_107025_, Entity p_107026_, Entity p_107027_) privateItemPickupParticle(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 EntitygetSafeCopy(Entity p_107037_) voidrender(VertexConsumer p_107039_, Camera p_107040_, float p_107041_) private voidvoidtick()private voidMethods 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:
getRenderTypein classParticle
-
render
-
tick
public void tick() -
updatePosition
private void updatePosition() -
saveOldPosition
private void saveOldPosition() -
getRenderBoundingBox
Description copied from class:ParticleReturns the bounding box that should be used for particle culling.AABB.INFINITEcan be returned for particles that should not be culled.- Overrides:
getRenderBoundingBoxin classParticle
-