Package net.minecraft
Record Class class_7038
java.lang.Object
java.lang.Record
net.minecraft.class_7038
- Record Components:
roll-
- All Implemented Interfaces:
ParticleEffect
- Mappings:
Namespace Name official hyintermediary net/minecraft/class_7038named net/minecraft/class_7038official cintermediary comp_457named roll
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.particle.ParticleEffect
ParticleEffect.Factory<T extends ParticleEffect> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<class_7038>static final ParticleEffect.Factory<class_7038>private final floatThe field for therollrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()final booleanIndicates whether some other object is "equal to" this one.getType()final inthashCode()Returns a hash code value for this object.floatroll()Returns the value of therollrecord component.final StringtoString()Returns a string representation of this record class.voidwrite(PacketByteBuf buf)
-
Field Details
-
roll
private final float rollThe field for therollrecord component. -
field_37016
- Mappings:
Namespace Name Mixin selector official aLhy;a:Lcom/mojang/serialization/Codec;intermediary field_37016Lnet/minecraft/class_7038;field_37016:Lcom/mojang/serialization/Codec;named field_37016Lnet/minecraft/class_7038;field_37016:Lcom/mojang/serialization/Codec;
-
field_37017
- Mappings:
Namespace Name Mixin selector official bLhy;b:Lhv$a;intermediary field_37017Lnet/minecraft/class_7038;field_37017:Lnet/minecraft/class_2394$class_2395;named field_37017Lnet/minecraft/class_7038;field_37017:Lnet/minecraft/particle/ParticleEffect$Factory;
-
-
Constructor Details
-
class_7038
public class_7038(float float2)
-
-
Method Details
-
getType
- Specified by:
getTypein interfaceParticleEffect- Mappings:
Namespace Name Mixin selector official bLhv;b()Lhw;intermediary method_10295Lnet/minecraft/class_2394;method_10295()Lnet/minecraft/class_2396;named getTypeLnet/minecraft/particle/ParticleEffect;getType()Lnet/minecraft/particle/ParticleType;
-
write
- Specified by:
writein interfaceParticleEffect- Mappings:
Namespace Name Mixin selector official aLhv;a(Lpv;)Vintermediary method_10294Lnet/minecraft/class_2394;method_10294(Lnet/minecraft/class_2540;)Vnamed writeLnet/minecraft/particle/ParticleEffect;write(Lnet/minecraft/network/PacketByteBuf;)V
-
asString
- Specified by:
asStringin interfaceParticleEffect- Mappings:
Namespace Name Mixin selector official aLhv;a()Ljava/lang/String;intermediary method_10293Lnet/minecraft/class_2394;method_10293()Ljava/lang/String;named asStringLnet/minecraft/particle/ParticleEffect;asString()Ljava/lang/String;
-
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 with '=='. -
roll
public float roll()Returns the value of therollrecord component.- Returns:
- the value of the
rollrecord component
-