Record Class MsgHeadpatSoundS2C
java.lang.Object
java.lang.Record
at.petrak.paucal.xplat.common.msg.MsgHeadpatSoundS2C
- All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
net.minecraft.network.protocol.common.custom.CustomPacketPayload.FallbackProvider<B extends net.minecraft.network.FriendlyByteBuf>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B extends net.minecraft.network.FriendlyByteBuf,T extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, MsgHeadpatSoundS2C> static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<MsgHeadpatSoundS2C> -
Constructor Summary
ConstructorsConstructorDescriptionMsgHeadpatSoundS2C(String soundName, boolean isGithub, net.minecraft.world.phys.Vec3 pos, float pitch, Optional<UUID> patter) Creates an instance of aMsgHeadpatSoundS2Crecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static voidhandle(MsgHeadpatSoundS2C self) final inthashCode()Returns a hash code value for this object.booleanisGithub()Returns the value of theisGithubrecord component.patter()Returns the value of thepatterrecord component.floatpitch()Returns the value of thepitchrecord component.net.minecraft.world.phys.Vec3pos()Returns the value of theposrecord component.Returns the value of thesoundNamerecord component.final StringtoString()Returns a string representation of this record class.net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<? extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> type()
-
Field Details
-
TYPE
public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<MsgHeadpatSoundS2C> TYPE -
CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf,MsgHeadpatSoundS2C> CODEC
-
-
Constructor Details
-
MsgHeadpatSoundS2C
public MsgHeadpatSoundS2C(String soundName, boolean isGithub, net.minecraft.world.phys.Vec3 pos, float pitch, Optional<UUID> patter) Creates an instance of aMsgHeadpatSoundS2Crecord class.- Parameters:
soundName- the value for thesoundNamerecord componentisGithub- the value for theisGithubrecord componentpos- the value for theposrecord componentpitch- the value for thepitchrecord componentpatter- the value for thepatterrecord component
-
-
Method Details
-
type
public net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<? extends net.minecraft.network.protocol.common.custom.CustomPacketPayload> type()- Specified by:
typein interfacenet.minecraft.network.protocol.common.custom.CustomPacketPayload
-
handle
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
soundName
Returns the value of thesoundNamerecord component.- Returns:
- the value of the
soundNamerecord component
-
isGithub
public boolean isGithub()Returns the value of theisGithubrecord component.- Returns:
- the value of the
isGithubrecord component
-
pos
public net.minecraft.world.phys.Vec3 pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
pitch
public float pitch()Returns the value of thepitchrecord component.- Returns:
- the value of the
pitchrecord component
-
patter
Returns the value of thepatterrecord component.- Returns:
- the value of the
patterrecord component
-