public class SceneBuilder
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
SceneBuilder.DebugInstructions |
class |
SceneBuilder.EffectInstructions |
class |
SceneBuilder.OverlayInstructions |
class |
SceneBuilder.SpecialInstructions |
class |
SceneBuilder.WorldInstructions |
| Modifier and Type | Field and Description |
|---|---|
SceneBuilder.DebugInstructions |
debug
Additional tools for debugging ponder and bypassing the facade
|
SceneBuilder.EffectInstructions |
effects
Special effects to embellish and communicate with
|
SceneBuilder.OverlayInstructions |
overlay
Ponder's toolkit for showing information on top of the scene world, such as
highlighted bounding boxes, texts, icons and keybindings.
|
SceneBuilder.SpecialInstructions |
special
Random other instructions that might come in handy
|
SceneBuilder.WorldInstructions |
world
Instructions for manipulating the schematic and its currently visible areas.
|
| Constructor and Description |
|---|
SceneBuilder(PonderScene ponderScene) |
| Modifier and Type | Method and Description |
|---|---|
void |
addInstruction(java.util.function.Consumer<PonderScene> callback)
Adds a simple instruction to the scene.
|
void |
addInstruction(PonderInstruction instruction)
Adds an instruction to the scene.
|
void |
addKeyframe()
Adds a Key Frame at the end of the last delay() instruction for the users to
skip to
|
void |
addLazyKeyframe()
Adds a Key Frame a couple ticks after the last delay() instruction for the
users to skip to
|
void |
configureBasePlate(int xOffset,
int zOffset,
int basePlateSize)
Communicates to the ponder UI which parts of the schematic make up the base
horizontally.
|
void |
idle(int ticks)
Before running the upcoming instructions, wait for a duration to let previous
actions play out.
|
void |
idleSeconds(int seconds)
Before running the upcoming instructions, wait for a duration to let previous
actions play out.
|
void |
markAsFinished()
Once the scene reaches this instruction in the timeline, mark it as
"finished".
|
void |
rotateCameraY(float degrees)
Pans the scene's camera view around the vertical axis by the given amount
|
void |
scaleSceneView(float factor)
Use this in case you are not happy with the scale of the scene relative to
the overlay
|
void |
setSceneOffsetY(float yOffset)
Use this in case you are not happy with the vertical alignment of the scene
relative to the overlay
|
void |
showBasePlate()
Fade the layer of blocks into the scene ponder assumes to be the base plate
of the schematic's structure.
|
void |
title(java.lang.String sceneId,
java.lang.String title)
Assign a unique translation key, as well as the standard english translation
for this scene's title using this method, anywhere inside the program
function.
|
public final SceneBuilder.OverlayInstructions overlay
public final SceneBuilder.WorldInstructions world
public final SceneBuilder.DebugInstructions debug
public final SceneBuilder.EffectInstructions effects
public final SceneBuilder.SpecialInstructions special
public SceneBuilder(PonderScene ponderScene)
public void title(java.lang.String sceneId,
java.lang.String title)
sceneId - title - public void configureBasePlate(int xOffset,
int zOffset,
int basePlateSize)
xOffset - Block spaces between the base plate and the schematic
boundary on the Western side.zOffset - Block spaces between the base plate and the schematic
boundary on the Northern side.basePlateSize - Length in blocks of the base plate itself. Ponder
assumes it to be squarepublic void scaleSceneView(float factor)
factor - >1 will make the scene appear larger, smaller otherwisepublic void setSceneOffsetY(float yOffset)
yOffset - >0 moves the scene up, down otherwisepublic void showBasePlate()
public void addInstruction(PonderInstruction instruction)
public void addInstruction(java.util.function.Consumer<PonderScene> callback)
public void idle(int ticks)
ticks - Duration to wait forpublic void idleSeconds(int seconds)
seconds - Duration to wait forpublic void markAsFinished()
public void rotateCameraY(float degrees)
degrees - public void addKeyframe()
public void addLazyKeyframe()