net.minecraft.advancements

public class DisplayInfo

ar
net.minecraft.advancements.DisplayInfo
net.minecraft.class_185
net.minecraft.advancement.AdvancementDisplay
net.minecraft.src.C_237_
net.minecraft.advancements.AdvancementDisplay

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<DisplayInfo>
a
CODEC
field_47190
CODEC
f_302437_
private final Component
b
title
field_1240
title
f_14958_
private final Component
c
description
field_1242
description
f_14959_
private final ItemStack
d
icon
field_1241
icon
f_14960_
private final Optional<ResourceLocation>
e
background
field_1243
background
f_14961_
private final AdvancementType
f
type
field_1237
frame
f_302420_
private final boolean
g
showToast
field_1239
showToast
f_14963_
private final boolean
h
announceChat
field_1238
announceToChat
f_14964_
private final boolean
i
hidden
field_1236
hidden
f_14965_
private float
j
x
field_1245
x
f_14966_
private float
k
y
field_1244
y
f_14967_

Constructor summary

ModifierConstructor
public (ItemStack icon, Component title, Component description, Optional<ResourceLocation> background, AdvancementType frame, boolean showToast, boolean announceToChat, boolean hidden)

Method summary

Modifier and TypeMethod
public void
a(float arg0, float arg1)
setLocation(float arg0, float arg1)
method_816(float arg0, float arg1)
setPos(float x, float y)
m_14978_(float p_14980_, float arg1)
public Component
a()
getTitle()
method_811()
getTitle()
m_14977_()
public Component
b()
getDescription()
method_817()
getDescription()
m_14985_()
public ItemStack
c()
getIcon()
method_821()
getIcon()
m_14990_()
public Optional<ResourceLocation>
d()
getBackground()
method_812()
getBackground()
m_14991_()
public AdvancementType
e()
getType()
method_815()
getFrame()
m_306629_()
public float
f()
getX()
method_818()
getX()
m_14993_()
public float
g()
getY()
method_819()
getY()
m_14994_()
public boolean
h()
shouldShowToast()
method_823()
shouldShowToast()
m_14995_()
public boolean
i()
shouldAnnounceChat()
method_808()
shouldAnnounceToChat()
m_14996_()
public boolean
j()
isHidden()
method_824()
isHidden()
m_14997_()
public void
a(ui arg0)
serializeToNetwork(FriendlyByteBuf arg0)
method_813(class_2540 arg0)
toPacket(PacketByteBuf buf)
m_14983_(C_4983_ arg0)
public static DisplayInfo
b(ui arg0)
fromNetwork(FriendlyByteBuf arg0)
method_820(class_2540 arg0)
fromPacket(PacketByteBuf buf)
m_14988_(C_4983_ p_14989_)