Enum Class NorthstarPackets

java.lang.Object
java.lang.Enum<NorthstarPackets>
com.lightning.northstar.content.NorthstarPackets
All Implemented Interfaces:
Serializable, Comparable<NorthstarPackets>, Constable

public enum NorthstarPackets extends Enum<NorthstarPackets>
  • Enum Constant Details

  • Field Details

    • CHANNEL_NAME

      public static final net.minecraft.resources.ResourceLocation CHANNEL_NAME
    • NETWORK_VERSION

      public static final int NETWORK_VERSION
      See Also:
    • NETWORK_VERSION_STR

      public static final String NETWORK_VERSION_STR
  • Method Details

    • values

      public static NorthstarPackets[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NorthstarPackets valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • registerPackets

      public static void registerPackets()
    • getChannel

      public static net.minecraftforge.network.simple.SimpleChannel getChannel()
    • sendToNear

      public static void sendToNear(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, int range, Object message)