Class AdvancementDisplay
java.lang.Object
com.github.retrooper.packetevents.protocol.advancements.AdvancementDisplay
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
ConstructorsConstructorDescriptionAdvancementDisplay
(net.kyori.adventure.text.Component title, net.kyori.adventure.text.Component description, ItemStack icon, AdvancementType type, @Nullable ResourceLocation background, boolean showToast, boolean hidden, float x, float y) -
Method Summary
Modifier and TypeMethodDescription@Nullable ResourceLocation
net.kyori.adventure.text.Component
getIcon()
net.kyori.adventure.text.Component
getTitle()
getType()
float
getX()
float
getY()
boolean
isHidden()
boolean
int
static AdvancementDisplay
read
(PacketWrapper<?> wrapper) void
setBackground
(@Nullable ResourceLocation background) void
setDescription
(net.kyori.adventure.text.Component description) void
setHidden
(boolean hidden) void
void
setShowToast
(boolean showToast) void
setTitle
(net.kyori.adventure.text.Component title) void
setType
(AdvancementType type) void
setX
(float x) void
setY
(float y) static void
write
(PacketWrapper<?> wrapper, AdvancementDisplay display)
-
Field Details
-
FLAG_HAS_BACKGROUND
public static final int FLAG_HAS_BACKGROUND- See Also:
-
FLAG_SHOW_TOAST
public static final int FLAG_SHOW_TOAST- See Also:
-
FLAG_HIDDEN
public static final int FLAG_HIDDEN- See Also:
-
-
Constructor Details
-
AdvancementDisplay
public AdvancementDisplay(net.kyori.adventure.text.Component title, net.kyori.adventure.text.Component description, ItemStack icon, AdvancementType type, @Nullable @Nullable ResourceLocation background, boolean showToast, boolean hidden, float x, float y)
-
-
Method Details
-
read
-
write
-
packFlags
public int packFlags() -
getTitle
public net.kyori.adventure.text.Component getTitle() -
setTitle
public void setTitle(net.kyori.adventure.text.Component title) -
getDescription
public net.kyori.adventure.text.Component getDescription() -
setDescription
public void setDescription(net.kyori.adventure.text.Component description) -
getIcon
-
setIcon
-
getType
-
setType
-
isShowToast
public boolean isShowToast() -
setShowToast
public void setShowToast(boolean showToast) -
isHidden
public boolean isHidden() -
setHidden
public void setHidden(boolean hidden) -
getBackground
-
setBackground
-
getX
public float getX() -
setX
public void setX(float x) -
getY
public float getY() -
setY
public void setY(float y)
-