Record Class FrozenVeinType
java.lang.Object
java.lang.Record
net.frozenblock.lib.worldgen.vein.impl.FrozenVeinType
public record FrozenVeinType(net.minecraft.resources.ResourceLocation key, net.minecraft.world.level.block.state.BlockState ore, net.minecraft.world.level.block.state.BlockState rawOreBlock, net.minecraft.world.level.block.state.BlockState filler, int minY, int maxY)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionFrozenVeinType(net.minecraft.resources.ResourceLocation key, net.minecraft.world.level.block.state.BlockState ore, net.minecraft.world.level.block.state.BlockState rawOreBlock, net.minecraft.world.level.block.state.BlockState filler, int minY, int maxY) Creates an instance of aFrozenVeinTyperecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.world.level.block.state.BlockStatefiller()Returns the value of thefillerrecord component.final inthashCode()Returns a hash code value for this object.net.minecraft.resources.ResourceLocationkey()Returns the value of thekeyrecord component.intmaxY()Returns the value of themaxYrecord component.intminY()Returns the value of theminYrecord component.net.minecraft.world.level.block.state.BlockStateore()Returns the value of theorerecord component.net.minecraft.world.level.block.state.BlockStateReturns the value of therawOreBlockrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
FrozenVeinType
public FrozenVeinType(net.minecraft.resources.ResourceLocation key, net.minecraft.world.level.block.state.BlockState ore, net.minecraft.world.level.block.state.BlockState rawOreBlock, net.minecraft.world.level.block.state.BlockState filler, int minY, int maxY) Creates an instance of aFrozenVeinTyperecord class.- Parameters:
key- the value for thekeyrecord componentore- the value for theorerecord componentrawOreBlock- the value for therawOreBlockrecord componentfiller- the value for thefillerrecord componentminY- the value for theminYrecord componentmaxY- the value for themaxYrecord 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 '=='. -
key
public net.minecraft.resources.ResourceLocation key()Returns the value of thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
ore
public net.minecraft.world.level.block.state.BlockState ore()Returns the value of theorerecord component.- Returns:
- the value of the
orerecord component
-
rawOreBlock
public net.minecraft.world.level.block.state.BlockState rawOreBlock()Returns the value of therawOreBlockrecord component.- Returns:
- the value of the
rawOreBlockrecord component
-
filler
public net.minecraft.world.level.block.state.BlockState filler()Returns the value of thefillerrecord component.- Returns:
- the value of the
fillerrecord component
-
minY
public int minY()Returns the value of theminYrecord component.- Returns:
- the value of the
minYrecord component
-
maxY
public int maxY()Returns the value of themaxYrecord component.- Returns:
- the value of the
maxYrecord component
-