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 float
lastProgress
private boolean
open
private float
progress
-
Constructor Summary
Constructors Constructor Description ChestLidAnimator()
-
Method Summary
Modifier and Type Method Description float
getProgress(float delta)
void
setOpen(boolean open)
void
step()
-
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)
-