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
ConstructorDescriptionExtendedSpriteSetImpl
(net.fabricmc.fabric.api.client.particle.v1.FabricSpriteProvider delegate) Creates an instance of aExtendedSpriteSetImpl
record class. -
Method Summary
Modifier and TypeMethodDescriptionnet.fabricmc.fabric.api.client.particle.v1.FabricSpriteProvider
delegate()
Returns the value of thedelegate
record component.final boolean
Indicates whether some other object is "equal to" this one.net.minecraft.client.renderer.texture.TextureAtlasSprite
get
(int i, int j) net.minecraft.client.renderer.texture.TextureAtlasSprite
get
(net.minecraft.util.RandomSource random) net.minecraft.client.renderer.texture.TextureAtlas
getAtlas()
List<net.minecraft.client.renderer.texture.TextureAtlasSprite>
final int
hashCode()
Returns a hash code value for this object.final String
toString()
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 aExtendedSpriteSetImpl
record class.- Parameters:
delegate
- the value for thedelegate
record component
-
-
Method Details
-
getAtlas
public net.minecraft.client.renderer.texture.TextureAtlas getAtlas()- Specified by:
getAtlas
in interfacedev.architectury.registry.client.particle.ParticleProviderRegistry.ExtendedSpriteSet
-
getSprites
- Specified by:
getSprites
in interfacedev.architectury.registry.client.particle.ParticleProviderRegistry.ExtendedSpriteSet
-
get
public net.minecraft.client.renderer.texture.TextureAtlasSprite get(int i, int j) - Specified by:
get
in interfacenet.minecraft.client.particle.SpriteSet
-
get
public net.minecraft.client.renderer.texture.TextureAtlasSprite get(net.minecraft.util.RandomSource random) - Specified by:
get
in 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 thedelegate
record component.- Returns:
- the value of the
delegate
record component
-