Record Class WorkspaceState.Buffer
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.client.ide.WorkspaceState.Buffer
- Enclosing class:
WorkspaceState
public static record WorkspaceState.Buffer(net.minecraft.resources.Identifier id, String filePath, @Nullable CodeEditor editor, @Nullable URL scriptRoot)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer(net.minecraft.resources.Identifier id, String filePath, @Nullable CodeEditor editor, @Nullable URL scriptRoot) Creates an instance of aBufferrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable CodeEditoreditor()Returns the value of theeditorrecord component.final booleanIndicates whether some other object is "equal to" this one.filePath()Returns the value of thefilePathrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.Identifierid()Returns the value of theidrecord component.@Nullable URLReturns the value of thescriptRootrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Buffer
public Buffer(net.minecraft.resources.Identifier id, String filePath, @Nullable CodeEditor editor, @Nullable URL scriptRoot) Creates an instance of aBufferrecord class.- Parameters:
id- the value for theidrecord componentfilePath- the value for thefilePathrecord componenteditor- the value for theeditorrecord componentscriptRoot- the value for thescriptRootrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
id
public net.minecraft.resources.Identifier id()Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
filePath
Returns the value of thefilePathrecord component.- Returns:
- the value of the
filePathrecord component
-
editor
Returns the value of theeditorrecord component.- Returns:
- the value of the
editorrecord component
-
scriptRoot
Returns the value of thescriptRootrecord component.- Returns:
- the value of the
scriptRootrecord component
-