Record Class VanillaTieredItemFamilies
java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.data.recipes.families.VanillaTieredItemFamilies
public record VanillaTieredItemFamilies(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> nugget, Supplier<? extends GauntletItem> gauntlet, Supplier<? extends PikeItem> pike, Supplier<? extends net.minecraft.world.item.Item> pikeHead, Supplier<? extends net.minecraft.world.item.ArrowItem> arrow)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final VanillaTieredItemFamiliesstatic final com.google.common.collect.ImmutableList<VanillaTieredItemFamilies>static final com.google.common.collect.ImmutableList<VanillaTieredItemFamilies>static final VanillaTieredItemFamiliesstatic final VanillaTieredItemFamiliesstatic final VanillaTieredItemFamiliesstatic final VanillaTieredItemFamilies -
Constructor Summary
ConstructorsConstructorDescriptionVanillaTieredItemFamilies(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> nugget, Supplier<? extends GauntletItem> gauntlet, Supplier<? extends PikeItem> pike, Supplier<? extends net.minecraft.world.item.Item> pikeHead, Supplier<? extends net.minecraft.world.item.ArrowItem> arrow) Creates an instance of aVanillaTieredItemFamiliesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionSupplier<? extends net.minecraft.world.item.ArrowItem>arrow()Returns the value of thearrowrecord component.final booleanIndicates whether some other object is "equal to" this one.Supplier<? extends GauntletItem>gauntlet()Returns the value of thegauntletrecord component.final inthashCode()Returns a hash code value for this object.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.pike()Returns the value of thepikerecord component.Supplier<? extends net.minecraft.world.item.Item>pikeHead()Returns the value of thepikeHeadrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
WOODEN
-
STONE
-
IRON
-
GOLDEN
-
DIAMOND
-
FAMILIES
-
FAMILIES_USE_NUGGETS_FOR_PROJECTILES
public static final com.google.common.collect.ImmutableList<VanillaTieredItemFamilies> FAMILIES_USE_NUGGETS_FOR_PROJECTILES
-
-
Constructor Details
-
VanillaTieredItemFamilies
public VanillaTieredItemFamilies(net.minecraft.tags.TagKey<net.minecraft.world.item.Item> material, net.minecraft.tags.TagKey<net.minecraft.world.item.Item> nugget, Supplier<? extends GauntletItem> gauntlet, Supplier<? extends PikeItem> pike, Supplier<? extends net.minecraft.world.item.Item> pikeHead, Supplier<? extends net.minecraft.world.item.ArrowItem> arrow) Creates an instance of aVanillaTieredItemFamiliesrecord class.- Parameters:
material- the value for thematerialrecord componentnugget- the value for thenuggetrecord componentgauntlet- the value for thegauntletrecord componentpike- the value for thepikerecord componentpikeHead- the value for thepikeHeadrecord componentarrow- the value for thearrowrecord 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
-
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
-