Package org.vivecraft.api.client.data
Enum Class RenderPass
- All Implemented Interfaces:
Serializable
,Comparable<RenderPass>
,Constable
A pass used to render things. What is rendered during a RenderPass depends on the pass, most are RenderPass that
render the whole level, others, like the
More passes may be added in the future.
GUI
pass only render the Gui/Hud.
More passes may be added in the future.
- Since:
- 1.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRenders the level from the view of the placeable Screenshot CameraRenders the level from the view of the First-Person MirrorRenders the Gui/Hud to a RenderTarget to be rendered in the world in other passes.Renders the level from the view of the Left eyeBlits the mirror to the desktop screenRenders the level from the view of the Right eyeRenders the level from the view of the Spyglass, when held in the off-handRenders the level from the view of the Spyglass, when held in the main-handRenders the level from the view of the Third-Person Mirror -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isFirstPerson
(RenderPass pass) Returns whether the provided RenderPass is rendered from the player's perspective.static boolean
isThirdPerson
(RenderPass pass) Returns whether the provided RenderPass is rendered from a third-person perspective.static boolean
renderPlayer
(RenderPass pass) Returns whether the RenderPass is supposed to render the player model.static RenderPass
Returns the enum constant of this class with the specified name.static RenderPass[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEFT
Renders the level from the view of the Left eye- Since:
- 1.3.0
-
RIGHT
Renders the level from the view of the Right eye- Since:
- 1.3.0
-
CENTER
Renders the level from the view of the First-Person Mirror- Since:
- 1.3.0
-
THIRD
Renders the level from the view of the Third-Person Mirror- Since:
- 1.3.0
-
GUI
Renders the Gui/Hud to a RenderTarget to be rendered in the world in other passes.- Since:
- 1.3.0
-
SCOPER
Renders the level from the view of the Spyglass, when held in the main-hand- Since:
- 1.3.0
-
SCOPEL
Renders the level from the view of the Spyglass, when held in the off-hand- Since:
- 1.3.0
-
CAMERA
Renders the level from the view of the placeable Screenshot Camera- Since:
- 1.3.0
-
MIRROR
Blits the mirror to the desktop screen- Since:
- 1.3.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isFirstPerson
Returns whether the provided RenderPass is rendered from the player's perspective.- Parameters:
pass
- The RenderPass in question.- Returns:
- Whether the provided RenderPass is from the player's first-person perspective.
-
isThirdPerson
Returns whether the provided RenderPass is rendered from a third-person perspective.- Parameters:
pass
- The RenderPass in question.- Returns:
- Whether the provided RenderPass is from a third-person perspective relative to the player.
-
renderPlayer
Returns whether the RenderPass is supposed to render the player model.- Parameters:
pass
- The RenderPass in question.- Returns:
- Whether the provided RenderPass is supposed to render the player.
-