Package net.minecraft.server
Record Class SampleSubscriptionTracker.PlayerSubscriptionData
java.lang.Object
java.lang.Record
net.minecraft.server.SampleSubscriptionTracker.PlayerSubscriptionData
- Record Components:
player-sampleType-
- Enclosing class:
SampleSubscriptionTracker
private static record SampleSubscriptionTracker.PlayerSubscriptionData(ServerPlayerEntity player, DebugSampleType sampleType)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/SampleSubscriptionTracker$PlayerSubscriptionDataintermediary net/minecraft/class_9188$class_9189official blq$anamed playerintermediary comp_2288official anamed sampleTypeintermediary comp_2289official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ServerPlayerEntityThe field for theplayerrecord component.private final DebugSampleTypeThe field for thesampleTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionPlayerSubscriptionData(ServerPlayerEntity serverPlayerEntity, DebugSampleType debugSampleType) -
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.player()Returns the value of theplayerrecord component.Returns the value of thesampleTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
player
The field for theplayerrecord component. -
sampleType
The field for thesampleTyperecord component.
-
-
Constructor Details
-
PlayerSubscriptionData
PlayerSubscriptionData(ServerPlayerEntity serverPlayerEntity, DebugSampleType debugSampleType)
-
-
Method Details
-
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). -
player
Returns the value of theplayerrecord component.- Returns:
- the value of the
playerrecord component
-
sampleType
Returns the value of thesampleTyperecord component.- Returns:
- the value of the
sampleTyperecord component
-