Record Class ResearchdExamplesSource

java.lang.Object
java.lang.Record
com.portingdeadmods.researchd.resources.ResearchdExamplesSource
All Implemented Interfaces:
net.minecraft.server.packs.repository.RepositorySource

public record ResearchdExamplesSource(String packId, net.minecraft.server.packs.PackType packType, net.minecraft.server.packs.repository.Pack.Position packPosition, net.minecraft.server.packs.repository.PackSource source, net.minecraft.server.packs.PackResources packResources) extends Record implements net.minecraft.server.packs.repository.RepositorySource
  • Constructor Summary

    Constructors
    Constructor
    Description
    ResearchdExamplesSource(String packId, net.minecraft.server.packs.PackType packType, net.minecraft.server.packs.repository.Pack.Position packPosition, net.minecraft.server.packs.PackResources packResources)
     
    ResearchdExamplesSource(String packId, net.minecraft.server.packs.PackType packType, net.minecraft.server.packs.repository.Pack.Position packPosition, net.minecraft.server.packs.repository.PackSource source, net.minecraft.server.packs.PackResources packResources)
    Creates an instance of a ResearchdExamplesSource record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    void
    loadPacks(@NotNull Consumer<net.minecraft.server.packs.repository.Pack> onLoad)
     
    Returns the value of the packId record component.
    net.minecraft.server.packs.repository.Pack.Position
    Returns the value of the packPosition record component.
    net.minecraft.server.packs.PackResources
    Returns the value of the packResources record component.
    net.minecraft.server.packs.PackType
    Returns the value of the packType record component.
    net.minecraft.server.packs.repository.PackSource
    Returns the value of the source record component.
    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

    • ResearchdExamplesSource

      public ResearchdExamplesSource(String packId, net.minecraft.server.packs.PackType packType, net.minecraft.server.packs.repository.Pack.Position packPosition, net.minecraft.server.packs.PackResources packResources)
    • ResearchdExamplesSource

      public ResearchdExamplesSource(String packId, net.minecraft.server.packs.PackType packType, net.minecraft.server.packs.repository.Pack.Position packPosition, net.minecraft.server.packs.repository.PackSource source, net.minecraft.server.packs.PackResources packResources)
      Creates an instance of a ResearchdExamplesSource record class.
      Parameters:
      packId - the value for the packId record component
      packType - the value for the packType record component
      packPosition - the value for the packPosition record component
      source - the value for the source record component
      packResources - the value for the packResources record component
  • Method Details

    • loadPacks

      public void loadPacks(@NotNull @NotNull Consumer<net.minecraft.server.packs.repository.Pack> onLoad)
      Specified by:
      loadPacks in interface net.minecraft.server.packs.repository.RepositorySource
    • 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.
    • packId

      public String packId()
      Returns the value of the packId record component.
      Returns:
      the value of the packId record component
    • packType

      public net.minecraft.server.packs.PackType packType()
      Returns the value of the packType record component.
      Returns:
      the value of the packType record component
    • packPosition

      public net.minecraft.server.packs.repository.Pack.Position packPosition()
      Returns the value of the packPosition record component.
      Returns:
      the value of the packPosition record component
    • source

      public net.minecraft.server.packs.repository.PackSource source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • packResources

      public net.minecraft.server.packs.PackResources packResources()
      Returns the value of the packResources record component.
      Returns:
      the value of the packResources record component