-
Notifications
You must be signed in to change notification settings - Fork 5
Migration 1.16.5
Relentless edited this page May 16, 2022
·
2 revisions
-
event.create()
only needs the items the scene should be registered for now -
.scene()
no longer requires a default structure anymore, if you don't have one - check getting started for more information
Old version | New version |
---|---|
scene.world() |
scene.world or scene.getWorld()
|
scene.level() |
scene.level or scene.getLevel()
|
scene.debug() |
scene.debug or scene.getDebug()
|
scene.overlay() |
scene.overlay or scene.getOverlay()
|
scene.effects() |
scene.effects or scene.getEffects()
|
scene.special() |
scene.special or scene.getSpecial()
|
Old:
scene
.overlay()
.showText(50)
.colored(PonderPalette.GREEN)
.text("This is an example text to show")
.pointAt(util.vector().topOf(pos));
New:
scene.text(50, "This is an example text to show", util.vector().topOf(pos)).colored(PonderPalette.GREEN);
Old:
scene.overlay().showControls(
new PonderInput(pos, PonderPointing.LEFT)
.rightClick()
.withItem("shears"),
120
);
New:
scene.showControls(120, pos, "left").rightClick().withItem("shears");
Old version | New version |
---|---|
util.grid() |
util.grid or utils.getGrid()
|
util.select() |
util.select or utils.getSelect()
|
util.vector() |
util.vector or utils.getVector()
|