Package net.minecraft.advancements
Class DisplayInfo
java.lang.Object
net.minecraft.advancements.DisplayInfo
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final ResourceLocation
private final Component
private final FrameType
private final boolean
private final ItemStack
private final boolean
private final Component
private float
private float
-
Constructor Summary
ConstructorDescriptionDisplayInfo
(ItemStack p_14969_, Component p_14970_, Component p_14971_, ResourceLocation p_14972_, FrameType p_14973_, boolean p_14974_, boolean p_14975_, boolean p_14976_) -
Method Summary
Modifier and TypeMethodDescriptionstatic DisplayInfo
fromJson
(com.google.gson.JsonObject p_14982_) static DisplayInfo
fromNetwork
(FriendlyByteBuf p_14989_) getFrame()
getIcon()
private static ItemStack
getIcon
(com.google.gson.JsonObject p_14987_) getTitle()
float
getX()
float
getY()
boolean
isHidden()
private com.google.gson.JsonObject
com.google.gson.JsonElement
void
serializeToNetwork
(FriendlyByteBuf p_14984_) void
setLocation
(float p_14979_, float p_14980_) boolean
boolean
-
Field Details
-
title
-
description
-
icon
-
background
-
frame
-
showToast
private final boolean showToast -
announceChat
private final boolean announceChat -
x
private float x -
y
private float y
-
-
Constructor Details
-
DisplayInfo
public DisplayInfo(ItemStack p_14969_, Component p_14970_, Component p_14971_, @Nullable ResourceLocation p_14972_, FrameType p_14973_, boolean p_14974_, boolean p_14975_, boolean p_14976_)
-
-
Method Details
-
setLocation
public void setLocation(float p_14979_, float p_14980_) -
getTitle
-
getDescription
-
getIcon
-
getBackground
-
getFrame
-
getX
public float getX() -
getY
public float getY() -
shouldShowToast
public boolean shouldShowToast() -
shouldAnnounceChat
public boolean shouldAnnounceChat() -
isHidden
public boolean isHidden() -
fromJson
-
getIcon
-
serializeToNetwork
-
fromNetwork
-
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
serializeIcon
private com.google.gson.JsonObject serializeIcon()
-