Record Class ToolFamilies
java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.data.recipes.families.ToolFamilies
public record ToolFamilies(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> nugget, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> handle, Supplier<? extends net.minecraft.world.item.SwordItem> sword, Supplier<? extends net.minecraft.world.item.PickaxeItem> pickaxe, Supplier<? extends net.minecraft.world.item.AxeItem> axe, Supplier<? extends net.minecraft.world.item.ShovelItem> shovel, Supplier<? extends net.minecraft.world.item.HoeItem> hoe, Supplier<? extends GauntletItem> gauntlet, Supplier<? extends PikeItem> pike, @Nullable Supplier<? extends net.minecraft.world.item.Item> pikeHead, Supplier<? extends net.minecraft.world.item.ArrowItem> arrow, @Nullable Supplier<? extends net.minecraft.world.item.Item> smithingTemplateItem, @Nullable com.google.common.collect.ImmutableList<net.minecraft.world.item.Item> smithingBaseUpgrades)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ToolFamiliesstatic final ToolFamiliesstatic final ToolFamiliesstatic final Collection<ToolFamilies>static final com.google.common.collect.ImmutableList<ToolFamilies>static final ToolFamiliesstatic final ToolFamiliesstatic final ToolFamiliesstatic final ToolFamilies -
Constructor Summary
ConstructorsConstructorDescriptionToolFamilies(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> nugget, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> handle, Supplier<? extends net.minecraft.world.item.SwordItem> sword, Supplier<? extends net.minecraft.world.item.PickaxeItem> pickaxe, Supplier<? extends net.minecraft.world.item.AxeItem> axe, Supplier<? extends net.minecraft.world.item.ShovelItem> shovel, Supplier<? extends net.minecraft.world.item.HoeItem> hoe, Supplier<? extends GauntletItem> gauntlet, Supplier<? extends PikeItem> pike, @Nullable Supplier<? extends net.minecraft.world.item.Item> pikeHead, Supplier<? extends net.minecraft.world.item.ArrowItem> arrow, @Nullable Supplier<? extends net.minecraft.world.item.Item> smithingTemplateItem, @Nullable com.google.common.collect.ImmutableList<net.minecraft.world.item.Item> smithingBaseUpgrades) Creates an instance of aToolFamiliesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionSupplier<? extends net.minecraft.world.item.ArrowItem>arrow()Returns the value of thearrowrecord component.Supplier<? extends net.minecraft.world.item.AxeItem>axe()Returns the value of theaxerecord component.final booleanIndicates whether some other object is "equal to" this one.Supplier<? extends GauntletItem>gauntlet()Returns the value of thegauntletrecord component.net.minecraft.tags.TagKey<net.minecraft.world.item.Item>handle()Returns the value of thehandlerecord component.final inthashCode()Returns a hash code value for this object.Supplier<? extends net.minecraft.world.item.HoeItem>hoe()Returns the value of thehoerecord component.net.minecraft.tags.TagKey<net.minecraft.world.item.Item>material()Returns the value of thematerialrecord component.net.minecraft.tags.TagKey<net.minecraft.world.item.Item>nugget()Returns the value of thenuggetrecord component.Supplier<? extends net.minecraft.world.item.PickaxeItem>pickaxe()Returns the value of thepickaxerecord component.pike()Returns the value of thepikerecord component.@Nullable Supplier<? extends net.minecraft.world.item.Item>pikeHead()Returns the value of thepikeHeadrecord component.Supplier<? extends net.minecraft.world.item.ShovelItem>shovel()Returns the value of theshovelrecord component.@Nullable com.google.common.collect.ImmutableList<net.minecraft.world.item.Item>Returns the value of thesmithingBaseUpgradesrecord component.@Nullable Supplier<? extends net.minecraft.world.item.Item>Returns the value of thesmithingTemplateItemrecord component.Supplier<? extends net.minecraft.world.item.SwordItem>sword()Returns the value of theswordrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
COPPER
-
COBALT
-
MOLTEN
-
TESLA
-
VENTUS
-
ASTRAL
-
STARSTORM
-
FAMILIES
-
FAMILIES_USE_NUGGETS_FOR_PROJECTILES
public static final com.google.common.collect.ImmutableList<ToolFamilies> FAMILIES_USE_NUGGETS_FOR_PROJECTILES
-
-
Constructor Details
-
ToolFamilies
public ToolFamilies(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> nugget, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> handle, Supplier<? extends net.minecraft.world.item.SwordItem> sword, Supplier<? extends net.minecraft.world.item.PickaxeItem> pickaxe, Supplier<? extends net.minecraft.world.item.AxeItem> axe, Supplier<? extends net.minecraft.world.item.ShovelItem> shovel, Supplier<? extends net.minecraft.world.item.HoeItem> hoe, Supplier<? extends GauntletItem> gauntlet, Supplier<? extends PikeItem> pike, @Nullable @Nullable Supplier<? extends net.minecraft.world.item.Item> pikeHead, Supplier<? extends net.minecraft.world.item.ArrowItem> arrow, @Nullable @Nullable Supplier<? extends net.minecraft.world.item.Item> smithingTemplateItem, @Nullable @Nullable com.google.common.collect.ImmutableList<net.minecraft.world.item.Item> smithingBaseUpgrades) Creates an instance of aToolFamiliesrecord class.- Parameters:
material- the value for thematerialrecord componentnugget- the value for thenuggetrecord componenthandle- the value for thehandlerecord componentsword- the value for theswordrecord componentpickaxe- the value for thepickaxerecord componentaxe- the value for theaxerecord componentshovel- the value for theshovelrecord componenthoe- the value for thehoerecord componentgauntlet- the value for thegauntletrecord componentpike- the value for thepikerecord componentpikeHead- the value for thepikeHeadrecord componentarrow- the value for thearrowrecord componentsmithingTemplateItem- the value for thesmithingTemplateItemrecord componentsmithingBaseUpgrades- the value for thesmithingBaseUpgradesrecord 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). -
material
public net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material()Returns the value of thematerialrecord component.- Returns:
- the value of the
materialrecord component
-
nugget
public net.minecraft.tags.TagKey<net.minecraft.world.item.Item> nugget()Returns the value of thenuggetrecord component.- Returns:
- the value of the
nuggetrecord component
-
handle
public net.minecraft.tags.TagKey<net.minecraft.world.item.Item> handle()Returns the value of thehandlerecord component.- Returns:
- the value of the
handlerecord component
-
sword
Returns the value of theswordrecord component.- Returns:
- the value of the
swordrecord component
-
pickaxe
Returns the value of thepickaxerecord component.- Returns:
- the value of the
pickaxerecord component
-
axe
Returns the value of theaxerecord component.- Returns:
- the value of the
axerecord component
-
shovel
Returns the value of theshovelrecord component.- Returns:
- the value of the
shovelrecord component
-
hoe
Returns the value of thehoerecord component.- Returns:
- the value of the
hoerecord component
-
gauntlet
Returns the value of thegauntletrecord component.- Returns:
- the value of the
gauntletrecord component
-
pike
Returns the value of thepikerecord component.- Returns:
- the value of the
pikerecord component
-
pikeHead
Returns the value of thepikeHeadrecord component.- Returns:
- the value of the
pikeHeadrecord component
-
arrow
Returns the value of thearrowrecord component.- Returns:
- the value of the
arrowrecord component
-
smithingTemplateItem
Returns the value of thesmithingTemplateItemrecord component.- Returns:
- the value of the
smithingTemplateItemrecord component
-
smithingBaseUpgrades
@Nullable public @Nullable com.google.common.collect.ImmutableList<net.minecraft.world.item.Item> smithingBaseUpgrades()Returns the value of thesmithingBaseUpgradesrecord component.- Returns:
- the value of the
smithingBaseUpgradesrecord component
-