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 ITextComponent
private final FrameType
private final boolean
private final ItemStack
private final boolean
private final ITextComponent
private float
private float
-
Constructor Summary
ConstructorDescriptionDisplayInfo
(ItemStack p_i47586_1_, ITextComponent p_i47586_2_, ITextComponent p_i47586_3_, ResourceLocation p_i47586_4_, FrameType p_i47586_5_, boolean p_i47586_6_, boolean p_i47586_7_, boolean p_i47586_8_) -
Method Summary
Modifier and TypeMethodDescriptionstatic DisplayInfo
fromJson
(com.google.gson.JsonObject p_192294_0_) static DisplayInfo
fromNetwork
(PacketBuffer p_192295_0_) getFrame()
getIcon()
private static ItemStack
getIcon
(com.google.gson.JsonObject p_193221_0_) getTitle()
float
getX()
float
getY()
boolean
isHidden()
private com.google.gson.JsonObject
com.google.gson.JsonElement
void
serializeToNetwork
(PacketBuffer p_192290_1_) void
setLocation
(float p_192292_1_, float p_192292_2_) 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_i47586_1_, ITextComponent p_i47586_2_, ITextComponent p_i47586_3_, @Nullable ResourceLocation p_i47586_4_, FrameType p_i47586_5_, boolean p_i47586_6_, boolean p_i47586_7_, boolean p_i47586_8_)
-
-
Method Details
-
setLocation
public void setLocation(float p_192292_1_, float p_192292_2_) -
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()
-