Package net.minecraft.client.toast
Class TutorialToast
java.lang.Object
net.minecraft.client.toast.TutorialToast
- All Implemented Interfaces:
Toast
@Environment(CLIENT) public class TutorialToast extends Object implements Toast
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TutorialToast.Type
Nested classes/interfaces inherited from interface net.minecraft.client.toast.Toast
Toast.Visibility
-
Field Summary
Fields Modifier and Type Field Description private Text
description
private boolean
hasProgressBar
private float
lastProgress
private long
lastTime
private float
progress
private Text
title
private TutorialToast.Type
type
private Toast.Visibility
visibility
-
Constructor Summary
Constructors Constructor Description TutorialToast(TutorialToast.Type type, Text title, Text description, boolean hasProgressBar)
-
Method Summary
Modifier and Type Method Description Toast.Visibility
draw(MatrixStack matrices, ToastManager manager, long startTime)
void
hide()
void
setProgress(float progress)
-
Field Details
-
type
-
title
-
description
-
visibility
-
lastTime
private long lastTime -
lastProgress
private float lastProgress -
progress
private float progress -
hasProgressBar
private final boolean hasProgressBar
-
-
Constructor Details
-
TutorialToast
public TutorialToast(TutorialToast.Type type, Text title, @Nullable Text description, boolean hasProgressBar)
-
-
Method Details