Record Class ClientExplosionTracker.ExplosionInfo
java.lang.Object
java.lang.Record
net.minecraft.client.multiplayer.ClientExplosionTracker.ExplosionInfo
- Enclosing class:
ClientExplosionTracker
private static record ClientExplosionTracker.ExplosionInfo(Vec3 center, float radius, int blockCount, WeightedList<ExplosionParticleInfo> blockParticles)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theblockCountrecord component.private final WeightedList<ExplosionParticleInfo> The field for theblockParticlesrecord component.private final Vec3The field for thecenterrecord component.private final floatThe field for theradiusrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateExplosionInfo(Vec3 center, float radius, int blockCount, WeightedList<ExplosionParticleInfo> blockParticles) Creates an instance of aExplosionInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theblockCountrecord component.Returns the value of theblockParticlesrecord component.center()Returns the value of thecenterrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatradius()Returns the value of theradiusrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
center
The field for thecenterrecord component. -
radius
private final float radiusThe field for theradiusrecord component. -
blockCount
private final int blockCountThe field for theblockCountrecord component. -
blockParticles
The field for theblockParticlesrecord component.
-
-
Constructor Details
-
ExplosionInfo
private ExplosionInfo(Vec3 center, float radius, int blockCount, WeightedList<ExplosionParticleInfo> blockParticles) Creates an instance of aExplosionInforecord class.- Parameters:
center- the value for thecenterrecord componentradius- the value for theradiusrecord componentblockCount- the value for theblockCountrecord componentblockParticles- the value for theblockParticlesrecord component
-
-
Method Details
-
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. -
center
Returns the value of thecenterrecord component.- Returns:
- the value of the
centerrecord component
-
radius
public float radius()Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
blockCount
public int blockCount()Returns the value of theblockCountrecord component.- Returns:
- the value of the
blockCountrecord component
-
blockParticles
Returns the value of theblockParticlesrecord component.- Returns:
- the value of the
blockParticlesrecord component
-