net.minecraft.advancements

public class DisplayInfo

at
net.minecraft.advancements.DisplayInfo
net.minecraft.class_185
net.minecraft.advancement.AdvancementDisplay
net.minecraft.advancements.AdvancementDisplay

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<DisplayInfo>
a
CODEC
field_47190
CODEC
public static final StreamCodec<RegistryFriendlyByteBuf, DisplayInfo>
b
STREAM_CODEC
field_48276
PACKET_CODEC
private final Component
c
title
field_1240
title
private final Component
d
description
field_1242
description
private final ItemStack
e
icon
field_1241
icon
private final Optional<ResourceLocation>
f
background
field_1243
background
private final AdvancementType
g
type
field_1237
frame
private final boolean
h
showToast
field_1239
showToast
private final boolean
i
announceChat
field_1238
announceToChat
private final boolean
j
hidden
field_1236
hidden
private float
k
x
field_1245
x
private float
l
y
field_1244
y

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)
public Component
a()
getTitle()
method_811()
getTitle()
public Component
b()
getDescription()
method_817()
getDescription()
public ItemStack
c()
getIcon()
method_821()
getIcon()
public Optional<ResourceLocation>
d()
getBackground()
method_812()
getBackground()
public AdvancementType
e()
getType()
method_815()
getFrame()
public float
f()
getX()
method_818()
getX()
public float
g()
getY()
method_819()
getY()
public boolean
h()
shouldShowToast()
method_823()
shouldShowToast()
public boolean
i()
shouldAnnounceChat()
method_808()
shouldAnnounceToChat()
public boolean
j()
isHidden()
method_824()
isHidden()
private void
a(xg arg0)
serializeToNetwork(RegistryFriendlyByteBuf arg0)
method_813(class_9129 arg0)
toPacket(RegistryByteBuf buf)
private static DisplayInfo
b(xg arg0)
fromNetwork(RegistryFriendlyByteBuf arg0)
method_820(class_9129 arg0)
fromPacket(RegistryByteBuf buf)