Class PacketConverter

java.lang.Object
eu.endercentral.crazy_advancements.packet.PacketConverter

public class PacketConverter extends Object
  • Constructor Details

    • PacketConverter

      public PacketConverter()
  • Method Details

    • setSmallestX

      public static void setSmallestX(NameKey tab, float smallestX)
    • getSmallestX

      public static float getSmallestX(NameKey key)
    • setSmallestY

      public static void setSmallestY(NameKey tab, float smallestY)
    • getSmallestY

      public static float getSmallestY(NameKey key)
    • generateX

      public static float generateX(NameKey tab, float displayX)
    • generateY

      public static float generateY(NameKey tab, float displayY)
    • toNmsAdvancement

      public static net.minecraft.advancements.Advancement toNmsAdvancement(Advancement advancement)
      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