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-
- All Implemented Interfaces:
PostEffectPass.Sampler
- Enclosing class:
PostEffectPass
@Environment(CLIENT)
public static record PostEffectPass.TextureSampler(String samplerName, AbstractTexture texture, int width, int height)
extends Record
implements PostEffectPass.Sampler
- Mappings:
Namespace Name named net/minecraft/client/gl/PostEffectPass$TextureSamplerintermediary net/minecraft/class_283$class_9973official grt$cnamed samplerNameintermediary comp_3038official anamed textureintermediary comp_3039official bnamed widthintermediary comp_3040official cnamed heightintermediary comp_3041official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate 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 string, AbstractTexture abstractTexture, int int2, int int3) -
Method Summary
Modifier and TypeMethodDescriptionvoidbindSampler(RenderPass pass, Map<Identifier, Handle<Framebuffer>> internalTargets) final booleanIndicates whether some other object is "equal to" this one.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.
-
-
Constructor Details
-
TextureSampler
-
-
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 aLgrt$a;a(Lfiy;Ljava/util/Map;)V
-
bindSampler
- Specified by:
bindSamplerin interfacePostEffectPass.Sampler- Mappings:
Namespace Name Mixin selector named bindSamplerLnet/minecraft/client/gl/PostEffectPass$Sampler;bindSampler(Lcom/mojang/blaze3d/systems/RenderPass;Ljava/util/Map;)Vintermediary method_62260Lnet/minecraft/class_283$class_9971;method_62260(Lcom/mojang/blaze3d/systems/RenderPass;Ljava/util/Map;)Vofficial aLgrt$a;a(Lcom/mojang/blaze3d/systems/RenderPass;Ljava/util/Map;)V
-
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.- 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
-