Package com.petrolpark.core.actionrecord
Record Class ActionRecordEntryResult.Logged.Advanced
java.lang.Object
java.lang.Record
com.petrolpark.core.actionrecord.ActionRecordEntryResult.Logged.Advanced
- All Implemented Interfaces:
ActionRecordEntryResult,ActionRecordEntryResult.Logged
- Enclosing interface:
ActionRecordEntryResult.Logged
public static record ActionRecordEntryResult.Logged.Advanced(net.minecraft.network.chat.Component simpleName, net.minecraft.network.chat.Component advancedName)
extends Record
implements ActionRecordEntryResult.Logged
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.petrolpark.core.actionrecord.ActionRecordEntryResult
ActionRecordEntryResult.Logged, ActionRecordEntryResult.SilentIgnoreNested classes/interfaces inherited from interface com.petrolpark.core.actionrecord.ActionRecordEntryResult.Logged
ActionRecordEntryResult.Logged.Advanced, ActionRecordEntryResult.Logged.Simple, ActionRecordEntryResult.Logged.UnsupportedPayloadType -
Field Summary
Fields inherited from interface com.petrolpark.core.actionrecord.ActionRecordEntryResult
SILENT_IGNORE -
Constructor Summary
ConstructorsConstructorDescriptionAdvanced(net.minecraft.network.chat.Component simpleName, net.minecraft.network.chat.Component advancedName) Creates an instance of aAdvancedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentReturns the value of theadvancedNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.network.chat.Componentname(net.minecraft.world.item.TooltipFlag tooltipFlag) net.minecraft.network.chat.ComponentReturns the value of thesimpleNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Advanced
public Advanced(net.minecraft.network.chat.Component simpleName, net.minecraft.network.chat.Component advancedName) Creates an instance of aAdvancedrecord class.- Parameters:
simpleName- the value for thesimpleNamerecord componentadvancedName- the value for theadvancedNamerecord component
-
-
Method Details
-
name
public net.minecraft.network.chat.Component name(net.minecraft.world.item.TooltipFlag tooltipFlag) - Specified by:
namein interfaceActionRecordEntryResult.Logged
-
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). -
simpleName
public net.minecraft.network.chat.Component simpleName()Returns the value of thesimpleNamerecord component.- Returns:
- the value of the
simpleNamerecord component
-
advancedName
public net.minecraft.network.chat.Component advancedName()Returns the value of theadvancedNamerecord component.- Returns:
- the value of the
advancedNamerecord component
-