Class SleepingParticle
java.lang.Object
net.minecraft.client.particle.Particle
net.minecraft.client.particle.SingleQuadParticle
net.minecraft.client.particle.TextureSheetParticle
com.minecolonies.core.client.particles.SleepingParticle
public class SleepingParticle
extends net.minecraft.client.particle.TextureSheetParticle
Custom particle for sleeping.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.particle.SingleQuadParticle
net.minecraft.client.particle.SingleQuadParticle.FacingCameraModeNested classes/interfaces inherited from class net.minecraft.client.particle.Particle
net.minecraft.client.particle.Particle.LifetimeAlpha -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.resources.ResourceLocationThe resourcelocation for the sleeping image.Fields inherited from class net.minecraft.client.particle.TextureSheetParticle
spriteFields inherited from class net.minecraft.client.particle.SingleQuadParticle
quadSizeFields inherited from class net.minecraft.client.particle.Particle
age, alpha, bbHeight, bbWidth, bCol, friction, gCol, gravity, hasPhysics, level, lifetime, onGround, oRoll, random, rCol, removed, roll, speedUpWhenYMotionIsBlocked, x, xd, xo, y, yd, yo, z, zd, zo -
Constructor Summary
ConstructorsConstructorDescriptionSleepingParticle(net.minecraft.client.particle.SpriteSet spriteSet, net.minecraft.client.multiplayer.ClientLevel worldIn, double xCoordIn, double yCoordIn, double zCoordIn, double xSpeedIn, double ySpeedIn, double zSpeedIn) -
Method Summary
Modifier and TypeMethodDescriptionintgetLightColor(float partialTick) net.minecraft.client.particle.ParticleRenderTypevoidtick()Updates the particles, setting new position/scaleMethods inherited from class net.minecraft.client.particle.TextureSheetParticle
getU0, getU1, getV0, getV1, pickSprite, setSprite, setSpriteFromAgeMethods inherited from class net.minecraft.client.particle.SingleQuadParticle
getFacingCameraMode, getQuadSize, getRenderBoundingBox, render, renderRotatedQuad, renderRotatedQuad, scaleMethods inherited from class net.minecraft.client.particle.Particle
getBoundingBox, getLifetime, getParticleGroup, getPos, isAlive, move, remove, setAlpha, setBoundingBox, setColor, setLifetime, setLocationFromBoundingbox, setParticleSpeed, setPos, setPower, setSize, toString
-
Field Details
-
SLEEPING_TEXTURE
public static final net.minecraft.resources.ResourceLocation SLEEPING_TEXTUREThe resourcelocation for the sleeping image.
-
-
Constructor Details
-
SleepingParticle
public SleepingParticle(net.minecraft.client.particle.SpriteSet spriteSet, net.minecraft.client.multiplayer.ClientLevel worldIn, double xCoordIn, double yCoordIn, double zCoordIn, double xSpeedIn, double ySpeedIn, double zSpeedIn)
-
-
Method Details
-
tick
public void tick()Updates the particles, setting new position/scale- Overrides:
tickin classnet.minecraft.client.particle.Particle
-
getLightColor
public int getLightColor(float partialTick) - Overrides:
getLightColorin classnet.minecraft.client.particle.Particle
-
getRenderType
public net.minecraft.client.particle.ParticleRenderType getRenderType()- Specified by:
getRenderTypein classnet.minecraft.client.particle.Particle
-