Record Class PostEffectContext
java.lang.Object
java.lang.Record
de.luckymcdev.foundryengine.client.post.PostEffectContext
public record PostEffectContext(net.minecraft.client.Minecraft client, float deltaTick, int screenWidth, int screenHeight, net.minecraft.client.renderer.PostChain processor)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPostEffectContext(net.minecraft.client.Minecraft client, float deltaTick, int screenWidth, int screenHeight, net.minecraft.client.renderer.PostChain processor) Creates an instance of aPostEffectContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.client.Minecraftclient()Returns the value of theclientrecord component.floatReturns the value of thedeltaTickrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.net.minecraft.client.renderer.PostChainReturns the value of theprocessorrecord component.intReturns the value of thescreenHeightrecord component.intReturns the value of thescreenWidthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PostEffectContext
public PostEffectContext(net.minecraft.client.Minecraft client, float deltaTick, int screenWidth, int screenHeight, net.minecraft.client.renderer.PostChain processor) Creates an instance of aPostEffectContextrecord class.- Parameters:
client- the value for theclientrecord componentdeltaTick- the value for thedeltaTickrecord componentscreenWidth- the value for thescreenWidthrecord componentscreenHeight- the value for thescreenHeightrecord componentprocessor- the value for theprocessorrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
client
public net.minecraft.client.Minecraft client()Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
deltaTick
public float deltaTick()Returns the value of thedeltaTickrecord component.- Returns:
- the value of the
deltaTickrecord component
-
screenWidth
public int screenWidth()Returns the value of thescreenWidthrecord component.- Returns:
- the value of the
screenWidthrecord component
-
screenHeight
public int screenHeight()Returns the value of thescreenHeightrecord component.- Returns:
- the value of the
screenHeightrecord component
-
processor
public net.minecraft.client.renderer.PostChain processor()Returns the value of theprocessorrecord component.- Returns:
- the value of the
processorrecord component
-