Class AttachmentBundle

java.lang.Object
net.ixdarklord.coolcatcore.internal.attachment.AttachmentBundle

public final class AttachmentBundle extends Object
  • Field Details

  • Method Details

    • codec

      public static com.mojang.serialization.Codec<AttachmentBundle> codec(AttachmentRegistry registry)
      Reads and writes one mod's bundle; names it doesn't know are dropped.
    • streamCodec

      public static net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, AttachmentBundle> streamCodec(com.mojang.serialization.Codec<AttachmentBundle> codec)
    • values

      public Map<Attachment<?>, Object> values()
    • get

      @Nullable public <T> T get(Attachment<T> attachment)
    • with

      public AttachmentBundle with(Attachment<?> attachment, @Nullable @Nullable Object value)
      A copy with the value set, or removed for null.
    • isEmpty

      public boolean isEmpty()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object