Enum Class CreatePackets

java.lang.Object
java.lang.Enum<CreatePackets>
com.petrolpark.compat.create.CreatePackets
All Implemented Interfaces:
ICustomPacketPayloadEntrant<RecordablePacketPayload>, IPacketEntrant<RecordablePacketPayload>, Serializable, Comparable<CreatePackets>, Constable, net.createmod.catnip.net.base.BasePacketPayload.PacketTypeProvider

public enum CreatePackets extends Enum<CreatePackets> implements net.createmod.catnip.net.base.BasePacketPayload.PacketTypeProvider, ICustomPacketPayloadEntrant<RecordablePacketPayload>
  • Enum Constant Details

    • BUILD_TUBE

      public static final CreatePackets BUILD_TUBE
    • SET_REDSTONE_PROGRAM

      public static final CreatePackets SET_REDSTONE_PROGRAM
    • CHANGE_REDSTONE_PROGRAMMER_POWER

      public static final CreatePackets CHANGE_REDSTONE_PROGRAMMER_POWER
    • REFRESH_REDSTONE_PROGRAMMER_SCREEN

      public static final CreatePackets REFRESH_REDSTONE_PROGRAMMER_SCREEN
  • Method Details

    • values

      public static CreatePackets[] 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 CreatePackets 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
    • getType

      public <T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T> getType()
      Specified by:
      getType in interface net.createmod.catnip.net.base.BasePacketPayload.PacketTypeProvider
    • getEntryResult

      public ActionRecordEntryResult getEntryResult(net.minecraft.server.level.ServerLevel level, RecordablePacketPayload packet)
      Specified by:
      getEntryResult in interface IPacketEntrant<RecordablePacketPayload>
    • register

      public static void register()