Class VoteToast

java.lang.Object
net.minecraft.client.toast.VoteToast
All Implemented Interfaces:
Toast

@Environment(CLIENT) public class VoteToast extends Object implements Toast
Mappings:
Namespace Name
official evg
intermediary net/minecraft/class_8438
named net/minecraft/client/toast/VoteToast
  • Field Details

    • field_44288

      private static final int field_44288
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Levg;e:I
      intermediary field_44288 Lnet/minecraft/class_8438;field_44288:I
      named field_44288 Lnet/minecraft/client/toast/VoteToast;field_44288:I
    • field_44289

      private static final int field_44289
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Levg;f:I
      intermediary field_44289 Lnet/minecraft/class_8438;field_44289:I
      named field_44289 Lnet/minecraft/client/toast/VoteToast;field_44289:I
    • field_44290

      private static final int field_44290
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official g Levg;g:I
      intermediary field_44290 Lnet/minecraft/class_8438;field_44290:I
      named field_44290 Lnet/minecraft/client/toast/VoteToast;field_44290:I
    • TITLE

      private static final Text TITLE
      Mappings:
      Namespace Name Mixin selector
      official h Levg;h:Lsw;
      intermediary field_44291 Lnet/minecraft/class_8438;field_44291:Lnet/minecraft/class_2561;
      named TITLE Lnet/minecraft/client/toast/VoteToast;TITLE:Lnet/minecraft/text/Text;
    • VOTING_KEY

      public static final Text VOTING_KEY
      Mappings:
      Namespace Name Mixin selector
      official a Levg;a:Lsw;
      intermediary field_44287 Lnet/minecraft/class_8438;field_44287:Lnet/minecraft/class_2561;
      named VOTING_KEY Lnet/minecraft/client/toast/VoteToast;VOTING_KEY:Lnet/minecraft/text/Text;
    • MESSAGES

      private static final Map<VoteToast.ConcernLevel,List<Text>> MESSAGES
      Mappings:
      Namespace Name Mixin selector
      official m Levg;m:Ljava/util/Map;
      intermediary field_44296 Lnet/minecraft/class_8438;field_44296:Ljava/util/Map;
      named MESSAGES Lnet/minecraft/client/toast/VoteToast;MESSAGES:Ljava/util/Map;
    • concernLevel

      private final VoteToast.ConcernLevel concernLevel
      Mappings:
      Namespace Name Mixin selector
      official i Levg;i:Levg$a;
      intermediary field_44292 Lnet/minecraft/class_8438;field_44292:Lnet/minecraft/class_8438$class_8439;
      named concernLevel Lnet/minecraft/client/toast/VoteToast;concernLevel:Lnet/minecraft/client/toast/VoteToast$ConcernLevel;
    • title

      private final Text title
      Mappings:
      Namespace Name Mixin selector
      official j Levg;j:Lsw;
      intermediary field_44293 Lnet/minecraft/class_8438;field_44293:Lnet/minecraft/class_2561;
      named title Lnet/minecraft/client/toast/VoteToast;title:Lnet/minecraft/text/Text;
    • message

      private final List<OrderedText> message
      Mappings:
      Namespace Name Mixin selector
      official k Levg;k:Ljava/util/List;
      intermediary field_44294 Lnet/minecraft/class_8438;field_44294:Ljava/util/List;
      named message Lnet/minecraft/client/toast/VoteToast;message:Ljava/util/List;
    • width

      private final int width
      Mappings:
      Namespace Name Mixin selector
      official l Levg;l:I
      intermediary field_44295 Lnet/minecraft/class_8438;field_44295:I
      named width Lnet/minecraft/client/toast/VoteToast;width:I
  • Constructor Details

    • VoteToast

      private VoteToast(VoteToast.ConcernLevel concernLevel, Text title, List<OrderedText> message, int width)
      Mappings:
      Namespace Name Mixin selector
      official <init> Levg;<init>(Levg$a;Lsw;Ljava/util/List;I)V
      intermediary <init> Lnet/minecraft/class_8438;<init>(Lnet/minecraft/class_8438$class_8439;Lnet/minecraft/class_2561;Ljava/util/List;I)V
      named <init> Lnet/minecraft/client/toast/VoteToast;<init>(Lnet/minecraft/client/toast/VoteToast$ConcernLevel;Lnet/minecraft/text/Text;Ljava/util/List;I)V
  • Method Details

    • createToast

      public static Optional<VoteToast> createToast(MinecraftClient client, Random random, VoteToast.ConcernLevel concernLevel)
      Mappings:
      Namespace Name Mixin selector
      official a Levg;a(Lerm;Lapj;Levg$a;)Ljava/util/Optional;
      intermediary method_50939 Lnet/minecraft/class_8438;method_50939(Lnet/minecraft/class_310;Lnet/minecraft/class_5819;Lnet/minecraft/class_8438$class_8439;)Ljava/util/Optional;
      named createToast Lnet/minecraft/client/toast/VoteToast;createToast(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/util/math/random/Random;Lnet/minecraft/client/toast/VoteToast$ConcernLevel;)Ljava/util/Optional;
    • asOrderedTextList

      private static ImmutableList<OrderedText> asOrderedTextList(@Nullable @Nullable Text text)
      Mappings:
      Namespace Name Mixin selector
      official a Levg;a(Lsw;)Lcom/google/common/collect/ImmutableList;
      intermediary method_50941 Lnet/minecraft/class_8438;method_50941(Lnet/minecraft/class_2561;)Lcom/google/common/collect/ImmutableList;
      named asOrderedTextList Lnet/minecraft/client/toast/VoteToast;asOrderedTextList(Lnet/minecraft/text/Text;)Lcom/google/common/collect/ImmutableList;
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface Toast
      Mappings:
      Namespace Name Mixin selector
      official a Levd;a()I
      intermediary method_29049 Lnet/minecraft/class_368;method_29049()I
      named getWidth Lnet/minecraft/client/toast/Toast;getWidth()I
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface Toast
      Mappings:
      Namespace Name Mixin selector
      official b Levd;b()I
      intermediary method_29050 Lnet/minecraft/class_368;method_29050()I
      named getHeight Lnet/minecraft/client/toast/Toast;getHeight()I
    • draw

      public Toast.Visibility draw(MatrixStack matrices, ToastManager manager, long startTime)
      Specified by:
      draw in interface Toast
      Mappings:
      Namespace Name Mixin selector
      official a Levd;a(Lemi;Leve;J)Levd$a;
      intermediary method_1986 Lnet/minecraft/class_368;method_1986(Lnet/minecraft/class_4587;Lnet/minecraft/class_374;J)Lnet/minecraft/class_368$class_369;
      named draw Lnet/minecraft/client/toast/Toast;draw(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/toast/ToastManager;J)Lnet/minecraft/client/toast/Toast$Visibility;
    • method_50938

      private void method_50938(MatrixStack matrices, ToastManager manager, int int2, int int3, int y, int height)
      Mappings:
      Namespace Name Mixin selector
      official a Levg;a(Lemi;Leve;IIII)V
      intermediary method_50938 Lnet/minecraft/class_8438;method_50938(Lnet/minecraft/class_4587;Lnet/minecraft/class_374;IIII)V
      named method_50938 Lnet/minecraft/client/toast/VoteToast;method_50938(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/toast/ToastManager;IIII)V
    • getType

      public VoteToast.ConcernLevel getType()
      Specified by:
      getType in interface Toast
      Mappings:
      Namespace Name Mixin selector
      official c Levg;c()Levg$a;
      intermediary method_50942 Lnet/minecraft/class_8438;method_50942()Lnet/minecraft/class_8438$class_8439;
      named getType Lnet/minecraft/client/toast/VoteToast;getType()Lnet/minecraft/client/toast/VoteToast$ConcernLevel;