Class FakeAdvancement.FakeAdvancementDisplay
java.lang.Object
com.fren_gor.ultimateAdvancementAPI.advancement.display.AdvancementDisplay
com.fren_gor.ultimateAdvancementAPI.advancement.FakeAdvancement.FakeAdvancementDisplay
- Enclosing class:
FakeAdvancement
The
AdvancementDisplay
used by FakeAdvancement
s.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fren_gor.ultimateAdvancementAPI.advancement.display.AdvancementDisplay
AdvancementDisplay.Builder
-
Field Summary
Fields inherited from class com.fren_gor.ultimateAdvancementAPI.advancement.display.AdvancementDisplay
announceChat, chatDescription, chatTitle, compactDescription, description, frame, icon, rawTitle, showToast, title, x, y
-
Constructor Summary
ConstructorDescriptionFakeAdvancementDisplay
(@NotNull Material icon, @NotNull String title, @NotNull AdvancementFrameType frame, float x, float y) Creates a newFakeAdvancementDisplay
.FakeAdvancementDisplay
(@NotNull ItemStack icon, @NotNull String title, @NotNull AdvancementFrameType frame, float x, float y) Creates a newFakeAdvancementDisplay
. -
Method Summary
Modifier and TypeMethodDescriptiongetNMSWrapper
(@NotNull Advancement advancement) Returns theAdvancementDisplay
NMS wrapper, using the provided advancement for construction (when necessary).Methods inherited from class com.fren_gor.ultimateAdvancementAPI.advancement.display.AdvancementDisplay
doesAnnounceToChat, doesShowToast, getChatDescription, getChatTitle, getCompactDescription, getDescription, getFrame, getIcon, getRawTitle, getTitle, getX, getY
-
Constructor Details
-
FakeAdvancementDisplay
public FakeAdvancementDisplay(@NotNull @NotNull Material icon, @NotNull @NotNull String title, @NotNull @NotNull AdvancementFrameType frame, float x, float y) Creates a newFakeAdvancementDisplay
.- Parameters:
icon
- The material of the item that will be shown in the GUI.title
- The title of the advancement.frame
- The shape of the advancement.x
- The x coordinate of the advancement.y
- The y coordinate of the advancement.
-
FakeAdvancementDisplay
public FakeAdvancementDisplay(@NotNull @NotNull ItemStack icon, @NotNull @NotNull String title, @NotNull @NotNull AdvancementFrameType frame, float x, float y) Creates a newFakeAdvancementDisplay
.- Parameters:
icon
- The item that will be shown in the GUI.title
- The title of the advancement.frame
- The shape of the advancement.x
- The x coordinate of the advancement.y
- The y coordinate of the advancement.
-
-
Method Details
-
getNMSWrapper
@NotNull public @NotNull AdvancementDisplayWrapper getNMSWrapper(@NotNull @NotNull Advancement advancement) Returns theAdvancementDisplay
NMS wrapper, using the provided advancement for construction (when necessary).- Overrides:
getNMSWrapper
in classAdvancementDisplay
- Parameters:
advancement
- The advancement used, when necessary, to create the NMS wrapper. Must be notnull
.- Returns:
- The
AdvancementDisplay
NMS wrapper.
-