Record Class ParticleProviderRegistryImpl.ExtendedSpriteSetImpl
java.lang.Object
java.lang.Record
dev.architectury.registry.client.particle.fabric.ParticleProviderRegistryImpl.ExtendedSpriteSetImpl
- All Implemented Interfaces:
dev.architectury.registry.client.particle.ParticleProviderRegistry.ExtendedSpriteSet,net.minecraft.client.particle.SpriteSet
- Enclosing class:
- ParticleProviderRegistryImpl
public static record ParticleProviderRegistryImpl.ExtendedSpriteSetImpl(net.fabricmc.fabric.api.client.particle.v1.FabricSpriteProvider delegate)
extends Record
implements dev.architectury.registry.client.particle.ParticleProviderRegistry.ExtendedSpriteSet
-
Constructor Summary
ConstructorsConstructorDescriptionExtendedSpriteSetImpl(net.fabricmc.fabric.api.client.particle.v1.FabricSpriteProvider delegate) Creates an instance of aExtendedSpriteSetImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.fabricmc.fabric.api.client.particle.v1.FabricSpriteProviderdelegate()Returns the value of thedelegaterecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.client.renderer.texture.TextureAtlasSpriteget(int i, int j) net.minecraft.client.renderer.texture.TextureAtlasSpriteget(net.minecraft.util.RandomSource random) net.minecraft.client.renderer.texture.TextureAtlasgetAtlas()List<net.minecraft.client.renderer.texture.TextureAtlasSprite>final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ExtendedSpriteSetImpl
public ExtendedSpriteSetImpl(net.fabricmc.fabric.api.client.particle.v1.FabricSpriteProvider delegate) Creates an instance of aExtendedSpriteSetImplrecord class.- Parameters:
delegate- the value for thedelegaterecord component
-
-
Method Details
-
getAtlas
public net.minecraft.client.renderer.texture.TextureAtlas getAtlas()- Specified by:
getAtlasin interfacedev.architectury.registry.client.particle.ParticleProviderRegistry.ExtendedSpriteSet
-
getSprites
- Specified by:
getSpritesin interfacedev.architectury.registry.client.particle.ParticleProviderRegistry.ExtendedSpriteSet
-
get
public net.minecraft.client.renderer.texture.TextureAtlasSprite get(int i, int j) - Specified by:
getin interfacenet.minecraft.client.particle.SpriteSet
-
get
public net.minecraft.client.renderer.texture.TextureAtlasSprite get(net.minecraft.util.RandomSource random) - Specified by:
getin interfacenet.minecraft.client.particle.SpriteSet
-
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). -
delegate
public net.fabricmc.fabric.api.client.particle.v1.FabricSpriteProvider delegate()Returns the value of thedelegaterecord component.- Returns:
- the value of the
delegaterecord component
-