Package net.minecraft.advancements
Class DisplayInfo
- java.lang.Object
-
- net.minecraft.advancements.DisplayInfo
-
public class DisplayInfo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
announceChat
private ResourceLocation
background
private ITextComponent
description
private FrameType
frame
private boolean
hidden
private ItemStack
icon
private boolean
showToast
private ITextComponent
title
private float
x
private float
y
-
Constructor Summary
Constructors Constructor Description DisplayInfo(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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DisplayInfo
fromJson(com.google.gson.JsonObject p_192294_0_)
static DisplayInfo
fromNetwork(PacketBuffer p_192295_0_)
ResourceLocation
getBackground()
ITextComponent
getDescription()
FrameType
getFrame()
ItemStack
getIcon()
private static ItemStack
getIcon(com.google.gson.JsonObject p_193221_0_)
ITextComponent
getTitle()
float
getX()
float
getY()
boolean
isHidden()
private com.google.gson.JsonObject
serializeIcon()
com.google.gson.JsonElement
serializeToJson()
void
serializeToNetwork(PacketBuffer p_192290_1_)
void
setLocation(float p_192292_1_, float p_192292_2_)
boolean
shouldAnnounceChat()
boolean
shouldShowToast()
-
-
-
Field Detail
-
title
private final ITextComponent title
-
description
private final ITextComponent description
-
icon
private final ItemStack icon
-
background
private final ResourceLocation background
-
frame
private final FrameType frame
-
showToast
private final boolean showToast
-
announceChat
private final boolean announceChat
-
hidden
private final boolean hidden
-
x
private float x
-
y
private float y
-
-
Constructor Detail
-
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 Detail
-
setLocation
public void setLocation(float p_192292_1_, float p_192292_2_)
-
getTitle
public ITextComponent getTitle()
-
getDescription
public ITextComponent getDescription()
-
getIcon
public ItemStack getIcon()
-
getBackground
@Nullable public ResourceLocation getBackground()
-
getFrame
public FrameType getFrame()
-
getX
public float getX()
-
getY
public float getY()
-
shouldShowToast
public boolean shouldShowToast()
-
shouldAnnounceChat
public boolean shouldAnnounceChat()
-
isHidden
public boolean isHidden()
-
fromJson
public static DisplayInfo fromJson(com.google.gson.JsonObject p_192294_0_)
-
getIcon
private static ItemStack getIcon(com.google.gson.JsonObject p_193221_0_)
-
serializeToNetwork
public void serializeToNetwork(PacketBuffer p_192290_1_)
-
fromNetwork
public static DisplayInfo fromNetwork(PacketBuffer p_192295_0_)
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-
serializeIcon
private com.google.gson.JsonObject serializeIcon()
-
-