Record Class ScreenEffectDefinition.TextureInput
java.lang.Object
java.lang.Record
net.ixdarklord.coolcatcanvas.api.client.effect.ScreenEffectDefinition.TextureInput
- All Implemented Interfaces:
ScreenEffectDefinition.Input
- Enclosing class:
ScreenEffectDefinition
public static record ScreenEffectDefinition.TextureInput(String samplerName, net.minecraft.resources.ResourceLocation location, int width, int height, boolean bilinear)
extends Record
implements ScreenEffectDefinition.Input
Samples
assets/<namespace>/textures/effect/<path>.png.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<ScreenEffectDefinition.TextureInput> -
Constructor Summary
ConstructorsConstructorDescriptionTextureInput(String samplerName, net.minecraft.resources.ResourceLocation location, int width, int height, boolean bilinear) Creates an instance of aTextureInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbilinear()Returns the value of thebilinearrecord component.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.net.minecraft.resources.ResourceLocationlocation()Returns the value of thelocationrecord component.Set<net.minecraft.resources.ResourceLocation> Returns the value of thesamplerNamerecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Field Details
-
CODEC
-
-
Constructor Details
-
TextureInput
public TextureInput(String samplerName, net.minecraft.resources.ResourceLocation location, int width, int height, boolean bilinear) Creates an instance of aTextureInputrecord class.- Parameters:
samplerName- the value for thesamplerNamerecord componentlocation- the value for thelocationrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentbilinear- the value for thebilinearrecord component
-
-
Method Details
-
referencedTargets
- Specified by:
referencedTargetsin interfaceScreenEffectDefinition.Input
-
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 interfaceScreenEffectDefinition.Input- Returns:
- the value of the
samplerNamerecord component
-
location
public net.minecraft.resources.ResourceLocation location()Returns the value of thelocationrecord component.- Returns:
- the value of the
locationrecord 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
-
bilinear
public boolean bilinear()Returns the value of thebilinearrecord component.- Specified by:
bilinearin interfaceScreenEffectDefinition.Input- Returns:
- the value of the
bilinearrecord component
-