Record Class ElementData
java.lang.Object
java.lang.Record
com.binaris.wizardry.datagen.help.ElementData
-
Constructor Summary
ConstructorsConstructorDescriptionElementData(net.minecraft.world.item.Item dust, ArmorData normal, ArmorData sage, ArmorData warlock, ArmorData battleMage) Creates an instance of aElementDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebattleMagerecord component.net.minecraft.world.item.Itemdust()Returns the value of thedustrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.normal()Returns the value of thenormalrecord component.sage()Returns the value of thesagerecord component.final StringtoString()Returns a string representation of this record class.warlock()Returns the value of thewarlockrecord component.
-
Constructor Details
-
ElementData
public ElementData(net.minecraft.world.item.Item dust, ArmorData normal, ArmorData sage, ArmorData warlock, ArmorData battleMage) Creates an instance of aElementDatarecord class.- Parameters:
dust- the value for thedustrecord componentnormal- the value for thenormalrecord componentsage- the value for thesagerecord componentwarlock- the value for thewarlockrecord componentbattleMage- the value for thebattleMagerecord component
-
-
Method Details
-
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). -
dust
public net.minecraft.world.item.Item dust()Returns the value of thedustrecord component.- Returns:
- the value of the
dustrecord component
-
normal
Returns the value of thenormalrecord component.- Returns:
- the value of the
normalrecord component
-
sage
Returns the value of thesagerecord component.- Returns:
- the value of the
sagerecord component
-
warlock
Returns the value of thewarlockrecord component.- Returns:
- the value of the
warlockrecord component
-
battleMage
Returns the value of thebattleMagerecord component.- Returns:
- the value of the
battleMagerecord component
-