Record Class GunShotBloodParticlePayload
java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.network.payload.GunShotBloodParticlePayload
- All Implemented Interfaces:
net.minecraft.network.protocol.common.custom.CustomPacketPayload
public record GunShotBloodParticlePayload(net.minecraft.core.particles.ParticleOptions particleOptions, double x, double y, double z)
extends Record
implements 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>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<T>, net.minecraft.network.protocol.common.custom.CustomPacketPayload.TypeAndCodec<B,T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, GunShotBloodParticlePayload> static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<GunShotBloodParticlePayload> -
Constructor Summary
ConstructorsConstructorDescriptionGunShotBloodParticlePayload(net.minecraft.core.particles.ParticleOptions particleOptions, double x, double y, double z) Creates an instance of aGunShotBloodParticlePayloadrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.core.particles.ParticleOptionsReturns the value of theparticleOptionsrecord 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()doublex()Returns the value of thexrecord component.doubley()Returns the value of theyrecord component.doublez()Returns the value of thezrecord component.Methods inherited from interface net.minecraft.network.protocol.common.custom.CustomPacketPayload
toVanillaClientbound, toVanillaServerbound
-
Field Details
-
TYPE
public static final net.minecraft.network.protocol.common.custom.CustomPacketPayload.Type<GunShotBloodParticlePayload> TYPE -
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, GunShotBloodParticlePayload> STREAM_CODEC
-
-
Constructor Details
-
GunShotBloodParticlePayload
public GunShotBloodParticlePayload(net.minecraft.core.particles.ParticleOptions particleOptions, double x, double y, double z) Creates an instance of aGunShotBloodParticlePayloadrecord class.- Parameters:
particleOptions- the value for theparticleOptionsrecord componentx- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord 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
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
particleOptions
public net.minecraft.core.particles.ParticleOptions particleOptions()Returns the value of theparticleOptionsrecord component.- Returns:
- the value of the
particleOptionsrecord component
-
x
public double x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public double y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public double z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-