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
ConstructorsConstructorDescriptionResearchdExamplesSource(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 aResearchdExamplesSourcerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.voidpackId()Returns the value of thepackIdrecord component.net.minecraft.server.packs.repository.Pack.PositionReturns the value of thepackPositionrecord component.net.minecraft.server.packs.PackResourcesReturns the value of thepackResourcesrecord component.net.minecraft.server.packs.PackTypepackType()Returns the value of thepackTyperecord component.net.minecraft.server.packs.repository.PackSourcesource()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
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 aResearchdExamplesSourcerecord class.- Parameters:
packId- the value for thepackIdrecord componentpackType- the value for thepackTyperecord componentpackPosition- the value for thepackPositionrecord componentsource- the value for thesourcerecord componentpackResources- the value for thepackResourcesrecord component
-
-
Method Details
-
loadPacks
public void loadPacks(@NotNull @NotNull Consumer<net.minecraft.server.packs.repository.Pack> onLoad) - Specified by:
loadPacksin interfacenet.minecraft.server.packs.repository.RepositorySource
-
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). -
packId
Returns the value of thepackIdrecord component.- Returns:
- the value of the
packIdrecord component
-
packType
public net.minecraft.server.packs.PackType packType()Returns the value of thepackTyperecord component.- Returns:
- the value of the
packTyperecord component
-
packPosition
public net.minecraft.server.packs.repository.Pack.Position packPosition()Returns the value of thepackPositionrecord component.- Returns:
- the value of the
packPositionrecord component
-
source
public net.minecraft.server.packs.repository.PackSource source()Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
packResources
public net.minecraft.server.packs.PackResources packResources()Returns the value of thepackResourcesrecord component.- Returns:
- the value of the
packResourcesrecord component
-