Class PacketConverter
java.lang.Object
eu.endercentral.crazy_advancements.packet.PacketConverter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.minecraft.advancements.AdvancementcreateDummy(NameKey name) Deprecated, for removal: This API element is subject to removal in a future version.No longer required for parent dummies.static floatstatic floatstatic floatgetSmallestX(NameKey key) static floatgetSmallestY(NameKey key) static voidsetSmallestX(NameKey tab, float smallestX) static voidsetSmallestY(NameKey tab, float smallestY) static net.minecraft.advancements.AdvancementtoNmsAdvancement(Advancement advancement) Creates an NMS Advancementstatic net.minecraft.advancements.AdvancementtoNmsToastAdvancement(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
-