Record Class GravelessNetworking.BackupEntry
java.lang.Object
java.lang.Record
com.breakinblocks.graveless.net.GravelessNetworking.BackupEntry
- Enclosing class:
GravelessNetworking
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, GravelessNetworking.BackupEntry> -
Constructor Summary
ConstructorsConstructorDescriptionBackupEntry(String fileName, long epochMillis, long gameTime, int itemCount, net.minecraft.core.GlobalPos pos) Creates an instance of aBackupEntryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of theepochMillisrecord component.final booleanIndicates whether some other object is "equal to" this one.fileName()Returns the value of thefileNamerecord component.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.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
STREAM_CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.FriendlyByteBuf, GravelessNetworking.BackupEntry> STREAM_CODEC
-
-
Constructor Details
-
BackupEntry
public BackupEntry(String fileName, long epochMillis, long gameTime, int itemCount, net.minecraft.core.GlobalPos pos) Creates an instance of aBackupEntryrecord class.- Parameters:
fileName- the value for thefileNamerecord componentepochMillis- the value for theepochMillisrecord componentgameTime- the value for thegameTimerecord componentitemCount- the value for theitemCountrecord componentpos- the value for theposrecord 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. -
fileName
Returns the value of thefileNamerecord component.- Returns:
- the value of the
fileNamerecord 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
-
itemCount
public int itemCount()Returns the value of theitemCountrecord component.- Returns:
- the value of the
itemCountrecord component
-
pos
public net.minecraft.core.GlobalPos pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-