Class AttachmentBundle
java.lang.Object
net.ixdarklord.coolcatcore.internal.attachment.AttachmentBundle
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic com.mojang.serialization.Codec<AttachmentBundle> codec(AttachmentRegistry registry) Reads and writes one mod's bundle; names it doesn't know are dropped.boolean<T> Tget(Attachment<T> attachment) inthashCode()booleanisEmpty()static net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, AttachmentBundle> streamCodec(com.mojang.serialization.Codec<AttachmentBundle> codec) toString()Map<Attachment<?>, Object> values()with(Attachment<?> attachment, @Nullable Object value) A copy with the value set, or removed fornull.
-
Field Details
-
EMPTY
-
-
Method Details
-
codec
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
-
get
-
with
A copy with the value set, or removed fornull. -
isEmpty
public boolean isEmpty() -
equals
-
hashCode
-
toString
-