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
    Modifier and Type
    Class
    Description
    class 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    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(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 a OreHelper record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest
    Returns the value of the baseStone record 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>
    Returns the value of the context record component.
    net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest
    Returns the value of the deepStone record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • 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 a OreHelper record class.
      Parameters:
      context - the value for the context record component
      baseStone - the value for the baseStone record component
      deepStone - the value for the deepStone record component
  • Method Details

    • builder

      public OreHelper.Builder builder(net.minecraft.resources.ResourceKey<net.minecraft.world.level.levelgen.placement.PlacedFeature> key)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • context

      public net.minecraft.data.worldgen.BootstrapContext<net.minecraft.world.level.levelgen.placement.PlacedFeature> context()
      Returns the value of the context record component.
      Returns:
      the value of the context record component
    • baseStone

      public net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest baseStone()
      Returns the value of the baseStone record component.
      Returns:
      the value of the baseStone record component
    • deepStone

      public net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest deepStone()
      Returns the value of the deepStone record component.
      Returns:
      the value of the deepStone record component