类 AdvancementDisplay
- java.lang.Object
-
- net.minecraft.advancement.AdvancementDisplay
-
public class AdvancementDisplay extends Object
- Mappings:
Namespace Name official amintermediary net/minecraft/class_185named net/minecraft/advancement/AdvancementDisplay
-
-
字段概要
字段 修饰符和类型 字段 说明 private booleanannounceToChatprivate Identifierbackgroundprivate Textdescriptionprivate AdvancementFrameframeprivate booleanhiddenprivate ItemStackiconprivate booleanshowToastprivate Texttitleprivate floatxPosprivate floatyPos
-
构造器概要
构造器 构造器 说明 AdvancementDisplay(ItemStack icon, Text title, Text description, @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 static AdvancementDisplayfromJson(JsonObject obj)static AdvancementDisplayfromPacket(PacketByteBuf buf)@Nullable IdentifiergetBackground()TextgetDescription()AdvancementFramegetFrame()ItemStackgetIcon()TextgetTitle()floatgetX()floatgetY()private static ItemStackiconFromJson(JsonObject json)private JsonObjecticonToJson()booleanisHidden()voidsetPosition(float xPos, float yPos)booleanshouldAnnounceToChat()booleanshouldShowToast()JsonElementtoJson()voidtoPacket(PacketByteBuf buf)
-
-
-
字段详细资料
-
title
private final Text title
- Mappings:
Namespace Name Mixin selector official aLam;a:Lon;intermediary field_1240Lnet/minecraft/class_185;field_1240:Lnet/minecraft/class_2561;named titleLnet/minecraft/advancement/AdvancementDisplay;title:Lnet/minecraft/text/Text;
-
description
private final Text description
- Mappings:
Namespace Name Mixin selector official bLam;b:Lon;intermediary field_1242Lnet/minecraft/class_185;field_1242:Lnet/minecraft/class_2561;named descriptionLnet/minecraft/advancement/AdvancementDisplay;description:Lnet/minecraft/text/Text;
-
icon
private final ItemStack icon
- Mappings:
Namespace Name Mixin selector official cLam;c:Lbpr;intermediary field_1241Lnet/minecraft/class_185;field_1241:Lnet/minecraft/class_1799;named iconLnet/minecraft/advancement/AdvancementDisplay;icon:Lnet/minecraft/item/ItemStack;
-
background
private final Identifier background
- Mappings:
Namespace Name Mixin selector official dLam;d:Lwp;intermediary field_1243Lnet/minecraft/class_185;field_1243:Lnet/minecraft/class_2960;named backgroundLnet/minecraft/advancement/AdvancementDisplay;background:Lnet/minecraft/util/Identifier;
-
frame
private final AdvancementFrame frame
- Mappings:
Namespace Name Mixin selector official eLam;e:Lan;intermediary field_1237Lnet/minecraft/class_185;field_1237:Lnet/minecraft/class_189;named frameLnet/minecraft/advancement/AdvancementDisplay;frame:Lnet/minecraft/advancement/AdvancementFrame;
-
showToast
private final boolean showToast
- Mappings:
Namespace Name Mixin selector official fLam;f:Zintermediary field_1239Lnet/minecraft/class_185;field_1239:Znamed showToastLnet/minecraft/advancement/AdvancementDisplay;showToast:Z
-
announceToChat
private final boolean announceToChat
- Mappings:
Namespace Name Mixin selector official gLam;g:Zintermediary field_1238Lnet/minecraft/class_185;field_1238:Znamed announceToChatLnet/minecraft/advancement/AdvancementDisplay;announceToChat:Z
-
hidden
private final boolean hidden
- Mappings:
Namespace Name Mixin selector official hLam;h:Zintermediary field_1236Lnet/minecraft/class_185;field_1236:Znamed hiddenLnet/minecraft/advancement/AdvancementDisplay;hidden:Z
-
xPos
private float xPos
- Mappings:
Namespace Name Mixin selector official iLam;i:Fintermediary field_1245Lnet/minecraft/class_185;field_1245:Fnamed xPosLnet/minecraft/advancement/AdvancementDisplay;xPos:F
-
yPos
private float yPos
- Mappings:
Namespace Name Mixin selector official jLam;j:Fintermediary field_1244Lnet/minecraft/class_185;field_1244:Fnamed yPosLnet/minecraft/advancement/AdvancementDisplay;yPos:F
-
-
构造器详细资料
-
AdvancementDisplay
public AdvancementDisplay(ItemStack icon, Text title, Text description, @Nullable @Nullable Identifier background, AdvancementFrame frame, boolean showToast, boolean announceToChat, boolean hidden)
- Mappings:
Namespace Name Mixin selector official <init>Lam;<init>(Lbpr;Lon;Lon;Lwp;Lan;ZZZ)Vintermediary <init>Lnet/minecraft/class_185;<init>(Lnet/minecraft/class_1799;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Lnet/minecraft/class_2960;Lnet/minecraft/class_189;ZZZ)Vnamed <init>Lnet/minecraft/advancement/AdvancementDisplay;<init>(Lnet/minecraft/item/ItemStack;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Lnet/minecraft/util/Identifier;Lnet/minecraft/advancement/AdvancementFrame;ZZZ)V
-
-
方法详细资料
-
setPosition
public void setPosition(float xPos, float yPos)- Mappings:
Namespace Name Mixin selector official aLam;a(FF)Vintermediary method_816Lnet/minecraft/class_185;method_816(FF)Vnamed setPositionLnet/minecraft/advancement/AdvancementDisplay;setPosition(FF)V
-
getTitle
public Text getTitle()
- Mappings:
Namespace Name Mixin selector official aLam;a()Lon;intermediary method_811Lnet/minecraft/class_185;method_811()Lnet/minecraft/class_2561;named getTitleLnet/minecraft/advancement/AdvancementDisplay;getTitle()Lnet/minecraft/text/Text;
-
getDescription
public Text getDescription()
- Mappings:
Namespace Name Mixin selector official bLam;b()Lon;intermediary method_817Lnet/minecraft/class_185;method_817()Lnet/minecraft/class_2561;named getDescriptionLnet/minecraft/advancement/AdvancementDisplay;getDescription()Lnet/minecraft/text/Text;
-
getIcon
public ItemStack getIcon()
- Mappings:
Namespace Name Mixin selector official cLam;c()Lbpr;intermediary method_821Lnet/minecraft/class_185;method_821()Lnet/minecraft/class_1799;named getIconLnet/minecraft/advancement/AdvancementDisplay;getIcon()Lnet/minecraft/item/ItemStack;
-
getBackground
@Nullable public @Nullable Identifier getBackground()
- Mappings:
Namespace Name Mixin selector official dLam;d()Lwp;intermediary method_812Lnet/minecraft/class_185;method_812()Lnet/minecraft/class_2960;named getBackgroundLnet/minecraft/advancement/AdvancementDisplay;getBackground()Lnet/minecraft/util/Identifier;
-
getFrame
public AdvancementFrame getFrame()
- Mappings:
Namespace Name Mixin selector official eLam;e()Lan;intermediary method_815Lnet/minecraft/class_185;method_815()Lnet/minecraft/class_189;named getFrameLnet/minecraft/advancement/AdvancementDisplay;getFrame()Lnet/minecraft/advancement/AdvancementFrame;
-
getX
public float getX()
- Mappings:
Namespace Name Mixin selector official fLam;f()Fintermediary method_818Lnet/minecraft/class_185;method_818()Fnamed getXLnet/minecraft/advancement/AdvancementDisplay;getX()F
-
getY
public float getY()
- Mappings:
Namespace Name Mixin selector official gLam;g()Fintermediary method_819Lnet/minecraft/class_185;method_819()Fnamed getYLnet/minecraft/advancement/AdvancementDisplay;getY()F
-
shouldShowToast
public boolean shouldShowToast()
- Mappings:
Namespace Name Mixin selector official hLam;h()Zintermediary method_823Lnet/minecraft/class_185;method_823()Znamed shouldShowToastLnet/minecraft/advancement/AdvancementDisplay;shouldShowToast()Z
-
shouldAnnounceToChat
public boolean shouldAnnounceToChat()
- Mappings:
Namespace Name Mixin selector official iLam;i()Zintermediary method_808Lnet/minecraft/class_185;method_808()Znamed shouldAnnounceToChatLnet/minecraft/advancement/AdvancementDisplay;shouldAnnounceToChat()Z
-
isHidden
public boolean isHidden()
- Mappings:
Namespace Name Mixin selector official jLam;j()Zintermediary method_824Lnet/minecraft/class_185;method_824()Znamed isHiddenLnet/minecraft/advancement/AdvancementDisplay;isHidden()Z
-
fromJson
public static AdvancementDisplay fromJson(JsonObject obj)
- Mappings:
Namespace Name Mixin selector official aLam;a(Lcom/google/gson/JsonObject;)Lam;intermediary method_809Lnet/minecraft/class_185;method_809(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_185;named fromJsonLnet/minecraft/advancement/AdvancementDisplay;fromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/advancement/AdvancementDisplay;
-
iconFromJson
private static ItemStack iconFromJson(JsonObject json)
- Mappings:
Namespace Name Mixin selector official bLam;b(Lcom/google/gson/JsonObject;)Lbpr;intermediary method_822Lnet/minecraft/class_185;method_822(Lcom/google/gson/JsonObject;)Lnet/minecraft/class_1799;named iconFromJsonLnet/minecraft/advancement/AdvancementDisplay;iconFromJson(Lcom/google/gson/JsonObject;)Lnet/minecraft/item/ItemStack;
-
toPacket
public void toPacket(PacketByteBuf buf)
- Mappings:
Namespace Name Mixin selector official aLam;a(Lob;)Vintermediary method_813Lnet/minecraft/class_185;method_813(Lnet/minecraft/class_2540;)Vnamed toPacketLnet/minecraft/advancement/AdvancementDisplay;toPacket(Lnet/minecraft/network/PacketByteBuf;)V
-
fromPacket
public static AdvancementDisplay fromPacket(PacketByteBuf buf)
- Mappings:
Namespace Name Mixin selector official bLam;b(Lob;)Lam;intermediary method_820Lnet/minecraft/class_185;method_820(Lnet/minecraft/class_2540;)Lnet/minecraft/class_185;named fromPacketLnet/minecraft/advancement/AdvancementDisplay;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/advancement/AdvancementDisplay;
-
toJson
public JsonElement toJson()
- Mappings:
Namespace Name Mixin selector official kLam;k()Lcom/google/gson/JsonElement;intermediary method_814Lnet/minecraft/class_185;method_814()Lcom/google/gson/JsonElement;named toJsonLnet/minecraft/advancement/AdvancementDisplay;toJson()Lcom/google/gson/JsonElement;
-
iconToJson
private JsonObject iconToJson()
- Mappings:
Namespace Name Mixin selector official lLam;l()Lcom/google/gson/JsonObject;intermediary method_810Lnet/minecraft/class_185;method_810()Lcom/google/gson/JsonObject;named iconToJsonLnet/minecraft/advancement/AdvancementDisplay;iconToJson()Lcom/google/gson/JsonObject;
-
-