Record Class StoneFamilies
java.lang.Object
java.lang.Record
tech.anonymoushacker1279.immersiveweapons.data.recipes.families.StoneFamilies
public record StoneFamilies(Supplier<? extends net.minecraft.world.level.block.Block> stone, Supplier<? extends net.minecraft.world.level.block.Block> bricks, boolean bricksHaveStonecutterRecipe, Supplier<? extends net.minecraft.world.level.block.Block> slab, Supplier<? extends net.minecraft.world.level.block.Block> stairs, Supplier<? extends net.minecraft.world.level.block.Block> wall, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> pillar, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> chiseled, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> cut, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> cutSlab, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smooth, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smoothSlab, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smoothStairs)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StoneFamiliesstatic final StoneFamiliesstatic final Collection<StoneFamilies> -
Constructor Summary
ConstructorsConstructorDescriptionStoneFamilies(Supplier<? extends net.minecraft.world.level.block.Block> stone, Supplier<? extends net.minecraft.world.level.block.Block> bricks, boolean bricksHaveStonecutterRecipe, Supplier<? extends net.minecraft.world.level.block.Block> slab, Supplier<? extends net.minecraft.world.level.block.Block> stairs, Supplier<? extends net.minecraft.world.level.block.Block> wall, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> pillar, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> chiseled, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> cut, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> cutSlab, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smooth, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smoothSlab, @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smoothStairs) Creates an instance of aStoneFamiliesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionSupplier<? extends net.minecraft.world.level.block.Block>bricks()Returns the value of thebricksrecord component.booleanReturns the value of thebricksHaveStonecutterReciperecord component.@Nullable Supplier<? extends net.minecraft.world.level.block.Block>chiseled()Returns the value of thechiseledrecord component.@Nullable Supplier<? extends net.minecraft.world.level.block.Block>cut()Returns the value of thecutrecord component.@Nullable Supplier<? extends net.minecraft.world.level.block.Block>cutSlab()Returns the value of thecutSlabrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable Supplier<? extends net.minecraft.world.level.block.Block>pillar()Returns the value of thepillarrecord component.Supplier<? extends net.minecraft.world.level.block.Block>slab()Returns the value of theslabrecord component.@Nullable Supplier<? extends net.minecraft.world.level.block.Block>smooth()Returns the value of thesmoothrecord component.@Nullable Supplier<? extends net.minecraft.world.level.block.Block>Returns the value of thesmoothSlabrecord component.@Nullable Supplier<? extends net.minecraft.world.level.block.Block>Returns the value of thesmoothStairsrecord component.Supplier<? extends net.minecraft.world.level.block.Block>stairs()Returns the value of thestairsrecord component.Supplier<? extends net.minecraft.world.level.block.Block>stone()Returns the value of thestonerecord component.final StringtoString()Returns a string representation of this record class.Supplier<? extends net.minecraft.world.level.block.Block>wall()Returns the value of thewallrecord component.
-
Field Details
-
CLOUD_MARBLE
-
BLOOD_SANDSTONE
-
FAMILIES
-
-
Constructor Details
-
StoneFamilies
public StoneFamilies(Supplier<? extends net.minecraft.world.level.block.Block> stone, Supplier<? extends net.minecraft.world.level.block.Block> bricks, boolean bricksHaveStonecutterRecipe, Supplier<? extends net.minecraft.world.level.block.Block> slab, Supplier<? extends net.minecraft.world.level.block.Block> stairs, Supplier<? extends net.minecraft.world.level.block.Block> wall, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.block.Block> pillar, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.block.Block> chiseled, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.block.Block> cut, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.block.Block> cutSlab, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smooth, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smoothSlab, @Nullable @Nullable Supplier<? extends net.minecraft.world.level.block.Block> smoothStairs) Creates an instance of aStoneFamiliesrecord class.- Parameters:
stone- the value for thestonerecord componentbricks- the value for thebricksrecord componentbricksHaveStonecutterRecipe- the value for thebricksHaveStonecutterReciperecord componentslab- the value for theslabrecord componentstairs- the value for thestairsrecord componentwall- the value for thewallrecord componentpillar- the value for thepillarrecord componentchiseled- the value for thechiseledrecord componentcut- the value for thecutrecord componentcutSlab- the value for thecutSlabrecord componentsmooth- the value for thesmoothrecord componentsmoothSlab- the value for thesmoothSlabrecord componentsmoothStairs- the value for thesmoothStairsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
stone
Returns the value of thestonerecord component.- Returns:
- the value of the
stonerecord component
-
bricks
Returns the value of thebricksrecord component.- Returns:
- the value of the
bricksrecord component
-
bricksHaveStonecutterRecipe
public boolean bricksHaveStonecutterRecipe()Returns the value of thebricksHaveStonecutterReciperecord component.- Returns:
- the value of the
bricksHaveStonecutterReciperecord component
-
slab
Returns the value of theslabrecord component.- Returns:
- the value of the
slabrecord component
-
stairs
Returns the value of thestairsrecord component.- Returns:
- the value of the
stairsrecord component
-
wall
Returns the value of thewallrecord component.- Returns:
- the value of the
wallrecord component
-
pillar
Returns the value of thepillarrecord component.- Returns:
- the value of the
pillarrecord component
-
chiseled
Returns the value of thechiseledrecord component.- Returns:
- the value of the
chiseledrecord component
-
cut
Returns the value of thecutrecord component.- Returns:
- the value of the
cutrecord component
-
cutSlab
Returns the value of thecutSlabrecord component.- Returns:
- the value of the
cutSlabrecord component
-
smooth
Returns the value of thesmoothrecord component.- Returns:
- the value of the
smoothrecord component
-
smoothSlab
Returns the value of thesmoothSlabrecord component.- Returns:
- the value of the
smoothSlabrecord component
-
smoothStairs
Returns the value of thesmoothStairsrecord component.- Returns:
- the value of the
smoothStairsrecord component
-