Class DynamicBuffersChange
java.lang.Object
foundry.veil.api.client.render.dynamicbuffer.DynamicBuffersChange
A change in the currently active dynamic buffers
- Since:
- 2.3.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates a new array containing all dynamic buffers that are now enabled.int
int
boolean
hasChanged
(DynamicBufferType buffer) Checks if a specificDynamicBufferType
changed enabled statusboolean
isEnabled
(DynamicBufferType buffer) Checks if a specificDynamicBufferType
is enabled in the new stateboolean
Checks if a specificDynamicBufferType
was enabled in the previous state
-
Constructor Details
-
DynamicBuffersChange
@Internal public DynamicBuffersChange(int previousBuffers, int newBuffers)
-
-
Method Details
-
getPreviouslyEnabledBuffers
- Returns:
- a new array containing all buffers that were previously enabled
-
getEnabledBuffers
Creates a new array containing all dynamic buffers that are now enabled.
The returned values are in the correct attachment order starting at attachment 1. Attachment 0 will always be the regular vanilla minecraft framebuffer attachment.- Returns:
- a new array containing all dynamic buffers that are now enabled
-
getPreviouslyEnabledBuffersMask
public int getPreviouslyEnabledBuffersMask()- Returns:
- a mask representing the enabled state of every dynamic buffer
-
getEnabledBuffersMask
public int getEnabledBuffersMask()- Returns:
- a mask representing the previous enabled state of every dynamic buffer
-
hasChanged
Checks if a specificDynamicBufferType
changed enabled status- Parameters:
buffer
- the buffer type to check- Returns:
- if the buffer was enabled / disabled
-
isEnabled
Checks if a specificDynamicBufferType
is enabled in the new state- Parameters:
buffer
- the buffer type to check- Returns:
- if the buffer is now enabled
-
wasPreviouslyEnabled
Checks if a specificDynamicBufferType
was enabled in the previous state- Parameters:
buffer
- the buffer type to check- Returns:
- if the buffer was previously enabled
-