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 classTutorialToast.TypeNested classes/interfaces inherited from interface net.minecraft.client.toast.Toast
Toast.Visibility -
Field Summary
Fields Modifier and Type Field Description private Textdescriptionprivate booleanhasProgressBarprivate floatlastProgressprivate longlastTimeprivate floatprogressprivate Texttitleprivate TutorialToast.Typetypeprivate Toast.Visibilityvisibility -
Constructor Summary
Constructors Constructor Description TutorialToast(TutorialToast.Type type, Text title, Text description, boolean hasProgressBar) -
Method Summary
Modifier and Type Method Description Toast.Visibilitydraw(MatrixStack matrices, ToastManager manager, long startTime)voidhide()voidsetProgress(float progress)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.toast.Toast
getType, method_29049, method_29050
-
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
-
draw
-
hide
public void hide() -
setProgress
public void setProgress(float progress)
-