Enum Class PermissionMode

java.lang.Object
java.lang.Enum<PermissionMode>
com.minecolonies.api.items.component.PermissionMode
All Implemented Interfaces:
Serializable, Comparable<PermissionMode>, Constable

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

  • Field Details

    • EMPTY

      public static final PermissionMode EMPTY
    • CODEC

      public static final com.mojang.serialization.Codec<PermissionMode> CODEC
    • STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,PermissionMode> STREAM_CODEC
  • Method Details

    • values

      public static PermissionMode[] 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 PermissionMode 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
    • writeToItemStack

      public void writeToItemStack(net.minecraft.world.item.ItemStack itemStack)
    • readFromItemStack

      public static PermissionMode readFromItemStack(net.minecraft.world.item.ItemStack itemStack)
    • updateItemStack

      public static void updateItemStack(net.minecraft.world.item.ItemStack itemStack, UnaryOperator<PermissionMode> updater)