Record Class ClientboundArgumentTypeMappingsPacket
java.lang.Object
java.lang.Record
net.kyori.adventure.platform.fabric.impl.ClientboundArgumentTypeMappingsPacket
public record ClientboundArgumentTypeMappingsPacket(it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.resources.ResourceLocation> mappings)
extends Record
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientboundArgumentTypeMappingsPacket(it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.resources.ResourceLocation> mappings) Creates an instance of aClientboundArgumentTypeMappingsPacketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.from(net.minecraft.network.FriendlyByteBuf buffer) final inthashCode()Returns a hash code value for this object.it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.resources.ResourceLocation>mappings()Returns the value of themappingsrecord component.voidsendTo(net.fabricmc.fabric.api.networking.v1.PacketSender responder) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
ID
public static final net.minecraft.resources.ResourceLocation ID
-
-
Constructor Details
-
ClientboundArgumentTypeMappingsPacket
public ClientboundArgumentTypeMappingsPacket(it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.resources.ResourceLocation> mappings) Creates an instance of aClientboundArgumentTypeMappingsPacketrecord class.- Parameters:
mappings- the value for themappingsrecord component
-
-
Method Details
-
from
public static ClientboundArgumentTypeMappingsPacket from(net.minecraft.network.FriendlyByteBuf buffer) -
sendTo
public void sendTo(net.fabricmc.fabric.api.networking.v1.PacketSender responder) -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
mappings
public it.unimi.dsi.fastutil.ints.Int2ObjectMap<net.minecraft.resources.ResourceLocation> mappings()Returns the value of themappingsrecord component.- Returns:
- the value of the
mappingsrecord component
-