Record Class NorthstarDataGenRecipes.OreType
java.lang.Object
java.lang.Record
com.lightning.northstar.data.util.NorthstarDataGenRecipes.OreType
- Enclosing class:
NorthstarDataGenRecipes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreTypestatic final NorthstarDataGenRecipes.OreType -
Constructor Summary
ConstructorsConstructorDescriptionOreType(Supplier<net.minecraft.world.level.ItemLike> crushedItem, float expectedAmount, int crushingDuration) OreType(Supplier<net.minecraft.world.level.ItemLike> crushedItem, float expectedAmount, int crushingDuration, Supplier<net.minecraft.world.level.ItemLike> smeltedItem, float smeltingXp, int smeltingDuration) Creates an instance of aOreTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionSupplier<net.minecraft.world.level.ItemLike> Returns the value of thecrushedItemrecord component.intReturns the value of thecrushingDurationrecord component.final booleanIndicates whether some other object is "equal to" this one.floatReturns the value of theexpectedAmountrecord component.final inthashCode()Returns a hash code value for this object.Supplier<net.minecraft.world.level.ItemLike> Returns the value of thesmeltedItemrecord component.intReturns the value of thesmeltingDurationrecord component.floatReturns the value of thesmeltingXprecord component.final StringtoString()Returns a string representation of this record class.with(float expectedAmount, int crushingDuration)
-
Field Details
-
COAL
-
COPPER
-
DIAMOND
-
EMERALD
-
GLOWSTONE
-
GOLD
-
IRON
-
LAPIS
-
MARTIAN_IRON
-
QUARTZ
-
REDSTONE
-
TITANIUM
-
TUNGSTEN
-
ZINC
-
DEEP_COAL
-
DEEP_COPPER
-
DEEP_DIAMOND
-
DEEP_EMERALD
-
DEEP_GLOWSTONE
-
DEEP_GOLD
-
DEEP_IRON
-
DEEP_LAPIS
-
DEEP_MARTIAN_IRON
-
DEEP_QUARTZ
-
DEEP_REDSTONE
-
DEEP_TITANIUM
-
DEEP_TUNGSTEN
-
DEEP_ZINC
-
-
Constructor Details
-
OreType
public OreType(Supplier<net.minecraft.world.level.ItemLike> crushedItem, float expectedAmount, int crushingDuration) -
OreType
public OreType(Supplier<net.minecraft.world.level.ItemLike> crushedItem, float expectedAmount, int crushingDuration, Supplier<net.minecraft.world.level.ItemLike> smeltedItem, float smeltingXp, int smeltingDuration) Creates an instance of aOreTyperecord class.- Parameters:
crushedItem- the value for thecrushedItemrecord componentexpectedAmount- the value for theexpectedAmountrecord componentcrushingDuration- the value for thecrushingDurationrecord componentsmeltedItem- the value for thesmeltedItemrecord componentsmeltingXp- the value for thesmeltingXprecord componentsmeltingDuration- the value for thesmeltingDurationrecord component
-
-
Method Details
-
with
-
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 '=='. -
crushedItem
Returns the value of thecrushedItemrecord component.- Returns:
- the value of the
crushedItemrecord component
-
expectedAmount
public float expectedAmount()Returns the value of theexpectedAmountrecord component.- Returns:
- the value of the
expectedAmountrecord component
-
crushingDuration
public int crushingDuration()Returns the value of thecrushingDurationrecord component.- Returns:
- the value of the
crushingDurationrecord component
-
smeltedItem
Returns the value of thesmeltedItemrecord component.- Returns:
- the value of the
smeltedItemrecord component
-
smeltingXp
public float smeltingXp()Returns the value of thesmeltingXprecord component.- Returns:
- the value of the
smeltingXprecord component
-
smeltingDuration
public int smeltingDuration()Returns the value of thesmeltingDurationrecord component.- Returns:
- the value of the
smeltingDurationrecord component
-