Record Class ClientBoundFileListPacket.RemoteEntry
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.common.network.packets.explorer.ClientBoundFileListPacket.RemoteEntry
- Enclosing class:
ClientBoundFileListPacket
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ClientBoundFileListPacket.RemoteEntry> -
Constructor Summary
ConstructorsConstructorDescriptionRemoteEntry(String relativePath, boolean isDirectory) Creates an instance of aRemoteEntryrecord class. -
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.booleanReturns the value of theisDirectoryrecord component.Returns the value of therelativePathrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
public static final net.minecraft.network.codec.StreamCodec<net.minecraft.network.RegistryFriendlyByteBuf, ClientBoundFileListPacket.RemoteEntry> CODEC
-
-
Constructor Details
-
RemoteEntry
Creates an instance of aRemoteEntryrecord class.- Parameters:
relativePath- the value for therelativePathrecord componentisDirectory- the value for theisDirectoryrecord 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. -
relativePath
Returns the value of therelativePathrecord component.- Returns:
- the value of the
relativePathrecord component
-
isDirectory
public boolean isDirectory()Returns the value of theisDirectoryrecord component.- Returns:
- the value of the
isDirectoryrecord component
-