Package net.minecraft.client.gl
Record Class PostEffectPass.TextureSampler
java.lang.Object
java.lang.Record
net.minecraft.client.gl.PostEffectPass.TextureSampler
- Record Components:
samplerName-texture-width-height-bilinear-
- All Implemented Interfaces:
PostEffectPass.Sampler
- Enclosing class:
PostEffectPass
@Environment(CLIENT)
public static record PostEffectPass.TextureSampler(String samplerName, AbstractTexture texture, int width, int height, boolean bilinear)
extends Record
implements PostEffectPass.Sampler
- Mappings:
Namespace Name named net/minecraft/client/gl/PostEffectPass$TextureSamplerintermediary net/minecraft/class_283$class_9973official hjn$dnamed samplerNameintermediary comp_3038official anamed textureintermediary comp_3039official bnamed widthintermediary comp_3040official cnamed heightintermediary comp_3041official dnamed bilinearintermediary comp_3037official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thebilinearrecord component.private final intThe field for theheightrecord component.private final StringThe field for thesamplerNamerecord component.private final AbstractTextureThe field for thetexturerecord component.private final intThe field for thewidthrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTextureSampler(String samplerName, AbstractTexture texture, int width, int height, boolean bilinear) Creates an instance of aTextureSamplerrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbilinear()Returns the value of thebilinearrecord component.final booleanIndicates whether some other object is "equal to" this one.getTexture(Map<Identifier, Handle<Framebuffer>> internalTargets) final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.voidpreRender(FramePass pass, Map<Identifier, Handle<Framebuffer>> internalTargets) Returns the value of thesamplerNamerecord component.texture()Returns the value of thetexturerecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.client.gl.PostEffectPass.Sampler
postRender
-
Field Details
-
samplerName
The field for thesamplerNamerecord component. -
texture
The field for thetexturerecord component. -
width
private final int widthThe field for thewidthrecord component. -
height
private final int heightThe field for theheightrecord component. -
bilinear
private final boolean bilinearThe field for thebilinearrecord component.
-
-
Constructor Details
-
TextureSampler
public TextureSampler(String samplerName, AbstractTexture texture, int width, int height, boolean bilinear) Creates an instance of aTextureSamplerrecord class.- Parameters:
samplerName- the value for thesamplerNamerecord componenttexture- the value for thetexturerecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentbilinear- the value for thebilinearrecord component
-
-
Method Details
-
preRender
- Specified by:
preRenderin interfacePostEffectPass.Sampler- Mappings:
Namespace Name Mixin selector named preRenderLnet/minecraft/client/gl/PostEffectPass$Sampler;preRender(Lnet/minecraft/client/render/FramePass;Ljava/util/Map;)Vintermediary method_62259Lnet/minecraft/class_283$class_9971;method_62259(Lnet/minecraft/class_9916;Ljava/util/Map;)Vofficial aLhjn$a;a(Lfuk;Ljava/util/Map;)V
-
getTexture
- Specified by:
getTexturein interfacePostEffectPass.Sampler- Mappings:
Namespace Name Mixin selector named getTextureLnet/minecraft/client/gl/PostEffectPass$Sampler;getTexture(Ljava/util/Map;)Lcom/mojang/blaze3d/textures/GpuTextureView;intermediary method_71128Lnet/minecraft/class_283$class_9971;method_71128(Ljava/util/Map;)Lcom/mojang/blaze3d/textures/GpuTextureView;official bLhjn$a;b(Ljava/util/Map;)Lcom/mojang/blaze3d/textures/GpuTextureView;
-
bilinear
public boolean bilinear()Returns the value of thebilinearrecord component.- Specified by:
bilinearin interfacePostEffectPass.Sampler- Returns:
- the value of the
bilinearrecord component
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
samplerName
Returns the value of thesamplerNamerecord component.- Specified by:
samplerNamein interfacePostEffectPass.Sampler- Returns:
- the value of the
samplerNamerecord component
-
texture
Returns the value of thetexturerecord component.- Returns:
- the value of the
texturerecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-