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_
public static final StreamCodec<RegistryFriendlyByteBuf, DisplayInfo>
b
STREAM_CODEC
field_48276
PACKET_CODEC
f_314089_
private final Component
c
title
field_1240
title
f_14958_
private final Component
d
description
field_1242
description
f_14959_
private final ItemStack
e
icon
field_1241
icon
f_14960_
private final Optional<ResourceLocation>
f
background
field_1243
background
f_14961_
private final AdvancementType
g
type
field_1237
frame
f_302420_
private final boolean
h
showToast
field_1239
showToast
f_14963_
private final boolean
i
announceChat
field_1238
announceToChat
f_14964_
private final boolean
j
hidden
field_1236
hidden
f_14965_
private float
k
x
field_1245
x
f_14966_
private float
l
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_()
private void
a(xa arg0)
serializeToNetwork(RegistryFriendlyByteBuf arg0)
method_813(class_9129 arg0)
toPacket(RegistryByteBuf buf)
m_14983_(C_313350_ arg0)
private static DisplayInfo
b(xa arg0)
fromNetwork(RegistryFriendlyByteBuf arg0)
method_820(class_9129 arg0)
fromPacket(RegistryByteBuf buf)
m_14988_(C_313350_ p_330340_)