Record Class TypedEntityData<T>
java.lang.Object
java.lang.Record
org.geysermc.mcprotocollib.protocol.data.game.item.component.TypedEntityData<T>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionTypedEntityData(T type, com.viaversion.nbt.mini.MNBT tag) Creates an instance of aTypedEntityDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> @NonNull TypedEntityData.TypedEntityDataBuilder<T> builder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.viaversion.nbt.mini.MNBTtag()Returns the value of thetagrecord component.@NonNull TypedEntityData.TypedEntityDataBuilder<T> final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
TypedEntityData
Creates an instance of aTypedEntityDatarecord class.- Parameters:
type- the value for thetyperecord componenttag- the value for thetagrecord component
-
-
Method Details
-
builder
-
toBuilder
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
tag
public com.viaversion.nbt.mini.MNBT tag()Returns the value of thetagrecord component.- Returns:
- the value of the
tagrecord component
-