Package net.minecraft.block.entity
Class ChestLidAnimator
java.lang.Object
net.minecraft.block.entity.ChestLidAnimator
public class ChestLidAnimator extends Object
Handles the animation for opening and closing chests and ender chests.
-
Field Summary
Fields Modifier and Type Field Description private floatlastProgressprivate booleanopenprivate floatprogress -
Constructor Summary
Constructors Constructor Description ChestLidAnimator() -
Method Summary
Modifier and Type Method Description floatgetProgress(float delta)voidsetOpen(boolean open)voidstep()
-
Field Details
-
open
private boolean open -
progress
private float progress -
lastProgress
private float lastProgress
-
-
Constructor Details
-
ChestLidAnimator
public ChestLidAnimator()
-
-
Method Details
-
step
public void step() -
getProgress
@Environment(CLIENT) public float getProgress(float delta) -
setOpen
public void setOpen(boolean open)
-