Package net.minecraft.text
Record Class ClickEvent.OpenFile
java.lang.Object
java.lang.Record
net.minecraft.text.ClickEvent.OpenFile
- Record Components:
path-
- All Implemented Interfaces:
ClickEvent
- Enclosing interface:
ClickEvent
- Mappings:
Namespace Name named net/minecraft/text/ClickEvent$OpenFileintermediary net/minecraft/class_2558$class_10607official xe$dnamed pathintermediary comp_3504official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.text.ClickEvent
ClickEvent.Action, ClickEvent.ChangePage, ClickEvent.CopyToClipboard, ClickEvent.OpenFile, ClickEvent.OpenUrl, ClickEvent.RunCommand, ClickEvent.SuggestCommand -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<ClickEvent.OpenFile> private final StringThe field for thepathrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.file()final inthashCode()Returns a hash code value for this object.path()Returns the value of thepathrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
path
The field for thepathrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/text/ClickEvent$OpenFile;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_55905Lnet/minecraft/class_2558$class_10607;field_55905:Lcom/mojang/serialization/MapCodec;official bLxe$d;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
OpenFile
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/text/ClickEvent$OpenFile;<init>(Ljava/io/File;)Vintermediary <init>Lnet/minecraft/class_2558$class_10607;<init>(Ljava/io/File;)Vofficial <init>Lxe$d;<init>(Ljava/io/File;)V
-
OpenFile
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/text/ClickEvent$OpenFile;<init>(Ljava/nio/file/Path;)Vintermediary <init>Lnet/minecraft/class_2558$class_10607;<init>(Ljava/nio/file/Path;)Vofficial <init>Lxe$d;<init>(Ljava/nio/file/Path;)V
-
OpenFile
-
-
Method Details
-
file
- Mappings:
Namespace Name Mixin selector named fileLnet/minecraft/text/ClickEvent$OpenFile;file()Ljava/io/File;intermediary method_66568Lnet/minecraft/class_2558$class_10607;method_66568()Ljava/io/File;official bLxe$d;b()Ljava/io/File;
-
getAction
- Specified by:
getActionin interfaceClickEvent- Mappings:
Namespace Name Mixin selector named getActionLnet/minecraft/text/ClickEvent;getAction()Lnet/minecraft/text/ClickEvent$Action;intermediary method_10845Lnet/minecraft/class_2558;method_10845()Lnet/minecraft/class_2558$class_2559;official aLxe;a()Lxe$a;
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
path
Returns the value of thepathrecord component.- Returns:
- the value of the
pathrecord component
-