Package com.breakinblocks.graveless.net
Record Class GravelessNetworking.GraveSummary
java.lang.Object
java.lang.Record
com.breakinblocks.graveless.net.GravelessNetworking.GraveSummary
- Enclosing class:
GravelessNetworking
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, GravelessNetworking.GraveSummary> -
Constructor Summary
ConstructorsConstructorDescriptionGraveSummary(UUID recordId, net.minecraft.core.GlobalPos pos, long epochMillis, long gameTime, String cause, int itemCount, int xp) Creates an instance of aGraveSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncause()Returns the value of thecauserecord component.longReturns the value of theepochMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.longgameTime()Returns the value of thegameTimerecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theitemCountrecord component.net.minecraft.core.GlobalPospos()Returns the value of theposrecord component.recordId()Returns the value of therecordIdrecord component.final StringtoString()Returns a string representation of this record class.intxp()Returns the value of thexprecord component.
-
Field Details
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf,GravelessNetworking.GraveSummary> STREAM_CODEC
-
-
Constructor Details
-
GraveSummary
public GraveSummary(UUID recordId, net.minecraft.core.GlobalPos pos, long epochMillis, long gameTime, String cause, int itemCount, int xp) Creates an instance of aGraveSummaryrecord class.- Parameters:
recordId- the value for therecordIdrecord componentpos- the value for theposrecord componentepochMillis- the value for theepochMillisrecord componentgameTime- the value for thegameTimerecord componentcause- the value for thecauserecord componentitemCount- the value for theitemCountrecord componentxp- the value for thexprecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
recordId
Returns the value of therecordIdrecord component.- Returns:
- the value of the
recordIdrecord component
-
pos
public net.minecraft.core.GlobalPos pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
epochMillis
public long epochMillis()Returns the value of theepochMillisrecord component.- Returns:
- the value of the
epochMillisrecord component
-
gameTime
public long gameTime()Returns the value of thegameTimerecord component.- Returns:
- the value of the
gameTimerecord component
-
cause
Returns the value of thecauserecord component.- Returns:
- the value of the
causerecord component
-
itemCount
public int itemCount()Returns the value of theitemCountrecord component.- Returns:
- the value of the
itemCountrecord component
-
xp
public int xp()Returns the value of thexprecord component.- Returns:
- the value of the
xprecord component
-