Record Class OreHelper
java.lang.Object
java.lang.Record
com.lightning.northstar.world.gen.OreHelper
@ParametersAreNonnullByDefault
public record OreHelper(net.minecraft.data.worldgen.BootstrapContext<net.minecraft.world.level.levelgen.placement.PlacedFeature> context, net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest baseStone, net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest deepStone)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionOreHelper(net.minecraft.data.worldgen.BootstrapContext<net.minecraft.world.level.levelgen.placement.PlacedFeature> context, TagHelper.Tag<net.minecraft.world.level.block.Block> baseStone, TagHelper.Tag<net.minecraft.world.level.block.Block> deepStone) OreHelper(net.minecraft.data.worldgen.BootstrapContext<net.minecraft.world.level.levelgen.placement.PlacedFeature> context, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> baseStone, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> deepStone) OreHelper(net.minecraft.data.worldgen.BootstrapContext<net.minecraft.world.level.levelgen.placement.PlacedFeature> context, net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest baseStone, net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest deepStone) Creates an instance of aOreHelperrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.world.level.levelgen.structure.templatesystem.RuleTestReturns the value of thebaseStonerecord component.builder(net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.placement.PlacedFeature> key) net.minecraft.data.worldgen.BootstrapContext<net.minecraft.world.level.levelgen.placement.PlacedFeature> context()Returns the value of thecontextrecord component.net.minecraft.world.level.levelgen.structure.templatesystem.RuleTestReturns the value of thedeepStonerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OreHelper
public OreHelper(net.minecraft.data.worldgen.BootstrapContext<net.minecraft.world.level.levelgen.placement.PlacedFeature> context, TagHelper.Tag<net.minecraft.world.level.block.Block> baseStone, TagHelper.Tag<net.minecraft.world.level.block.Block> deepStone) -
OreHelper
public OreHelper(net.minecraft.data.worldgen.BootstrapContext<net.minecraft.world.level.levelgen.placement.PlacedFeature> context, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> baseStone, net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block> deepStone) -
OreHelper
public OreHelper(net.minecraft.data.worldgen.BootstrapContext<net.minecraft.world.level.levelgen.placement.PlacedFeature> context, net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest baseStone, net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest deepStone) Creates an instance of aOreHelperrecord class.- Parameters:
context- the value for thecontextrecord componentbaseStone- the value for thebaseStonerecord componentdeepStone- the value for thedeepStonerecord component
-
-
Method Details
-
builder
public OreHelper.Builder builder(net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.placement.PlacedFeature> key) -
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). -
context
public net.minecraft.data.worldgen.BootstrapContext<net.minecraft.world.level.levelgen.placement.PlacedFeature> context()Returns the value of thecontextrecord component.- Returns:
- the value of the
contextrecord component
-
baseStone
public net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest baseStone()Returns the value of thebaseStonerecord component.- Returns:
- the value of the
baseStonerecord component
-
deepStone
public net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest deepStone()Returns the value of thedeepStonerecord component.- Returns:
- the value of the
deepStonerecord component
-