Class PacketConverter
java.lang.Object
eu.endercentral.crazy_advancements.packet.PacketConverter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.advancements.Advancement
createDummy
(NameKey name) Deprecated, for removal: This API element is subject to removal in a future version.No longer required for parent dummies.static float
static float
static float
getSmallestX
(NameKey key) static float
getSmallestY
(NameKey key) static void
setSmallestX
(NameKey tab, float smallestX) static void
setSmallestY
(NameKey tab, float smallestY) static net.minecraft.advancements.Advancement
toNmsAdvancement
(Advancement advancement) Creates an NMS Advancementstatic net.minecraft.advancements.Advancement
toNmsToastAdvancement
(ToastNotification notification) Creates an NMS Toast Advancement
-
Constructor Details
-
PacketConverter
public PacketConverter()
-
-
Method Details
-
setSmallestX
-
getSmallestX
-
setSmallestY
-
getSmallestY
-
generateX
-
generateY
-
toNmsAdvancement
Creates an NMS Advancement- Parameters:
advancement
- The Advancement to use as a base- Returns:
- The NMS Advancement
-
toNmsToastAdvancement
public static net.minecraft.advancements.Advancement toNmsToastAdvancement(ToastNotification notification) Creates an NMS Toast Advancement- Parameters:
notification
- The Toast Notification to use as a base- Returns:
- The NMS Advancement
-
createDummy
@Deprecated(forRemoval=true, since="2.1.15") public static net.minecraft.advancements.Advancement createDummy(NameKey name) Deprecated, for removal: This API element is subject to removal in a future version.No longer required for parent dummies. Might be removed in a future version.Creates a Dummy Advancement
Internally used to generate temporary parent advancements that need to be referenced in the packet- Parameters:
name
- The name of the Advancement- Returns:
- the Dummy Advancement
-