Skip to content

Commit

Permalink
added gasVoid sprite
Browse files Browse the repository at this point in the history
added bundles
  • Loading branch information
Zelaux committed Aug 5, 2021
1 parent 3f2b42c commit 0daf787
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 30 deletions.
Binary file added core/assets-raw/sprites/gas-void.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 9 additions & 4 deletions core/assets/bundles/bundle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
block.gas-lib-java-gas-source.name = Gas Source
block.gas-lib-java-gas-source.description = Infinitely outputs gasses. Sandbox only.
block.gas-lib-java-gas-void.name = Gas Void
block.gas-lib-java-gas-void.description = Removes any liquids. Sandbox only.

block.gas-library-java-gas-source.name = Gas Source
block.gas-library-java-gas-source.description = Infinitely outputs gasses. Sandbox only.
block.gas-library-java-gas-void.name = Gas Void
block.gas-library-java-gas-void.description = Removes any gasses. Sandbox only.
category.gasses = Gasses
bar.gas=Gas
stat.gascapacity = Gas capacity
content.typeid_UNUSED.name=Gasses
13 changes: 9 additions & 4 deletions core/assets/bundles/bundle_ru.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
block.gas-lib-java-gas-source.name = Èñòî÷íèê ãàçîâ
block.gas-lib-java-gas-source.description = Ïîñòîÿííî âûäà¸ò ãàç. Òîëüêî ïåñî÷íèöà.
block.gas-lib-java-gas-void.name = Ãàçîâûé âàêóóì
block.gas-lib-java-gas-void.description = Óíè÷òîæàåò ëþáûå æèäêîñòè. Òîëüêî ïåñî÷íèöà.

block.gas-library-java-gas-source.name = Источник газов
block.gas-library-java-gas-source.description = Постоянно выдаёт газ. Только песочница.
block.gas-library-java-gas-void.name = Газовый вакуум
block.gas-library-java-gas-void.description = Уничтожает любые газы. Только песочница.
bar.gas = Газ
category.gasses = Газы
stat.gascapacity = Объём газа
content.typeid_UNUSED.name=Газы
Binary file added core/assets/sprites/editor/gas-void-icon-editor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/assets/sprites/gas-void.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added core/assets/sprites/ui/block-gas-void-ui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 0 additions & 13 deletions core/src/example/ExampleClass.java

This file was deleted.

6 changes: 5 additions & 1 deletion core/src/gas/GasStack.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ public GasStack(Gas gas, float amount) {
this.gas = gas;
this.amount = amount;
}

/*block.gas-library-java-gas-source.name = Источник газов
block.gas-library-java-gas-source.description = Постоянно выдаёт газ. Только песочница.
block.gas-library-java-gas-void.name = Газовый вакуум
block.gas-library-java-gas-void.description = Уничтожает любые газы. Только песочница.
*/
protected GasStack() {
gas = null;
}
Expand Down
8 changes: 4 additions & 4 deletions core/src/gas/content/GasBlocks.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ public class GasBlocks implements ContentList {

public void load() {
gasSource = new GasSource("gas-source") {{
localizedName = "Gas Source";
description = "Infinitely outputs gasses. Sandbox only.";
// localizedName = "Gas Source";
// description = "Infinitely outputs gasses. Sandbox only.";
requirements(Category.liquid, BuildVisibility.sandboxOnly, with());
alwaysUnlocked = true;
}};
gasVoid = new GasVoid("gas-void") {{
localizedName = "Gas Void";
description = "Removes any liquids. Sandbox only.";
// localizedName = "Gas Void";
// description = "Removes any liquids. Sandbox only.";
requirements(Category.liquid, BuildVisibility.sandboxOnly, with());
alwaysUnlocked = true;
}};
Expand Down
6 changes: 3 additions & 3 deletions core/src/gas/world/GasBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ public void getDependencies(Cons<UnlockableContent> cons) {

@Override
public void init() {
localizedName = Core.bundle.get(getContentType() + "." + this.name + ".name", localizedName);
description = Core.bundle.get(getContentType() + "." + this.name + ".description",description);
details = Core.bundle.get(getContentType() + "." + this.name + ".details",details);
// localizedName = Core.bundle.get(getContentType() + "." + this.name + ".name", localizedName);
// description = Core.bundle.get(getContentType() + "." + this.name + ".description",description);
// details = Core.bundle.get(getContentType() + "." + this.name + ".details",details);
super.init();
for (ConsumeType value : ConsumeType.values()) {
if (consumes.has(value)) {
Expand Down
2 changes: 1 addition & 1 deletion mod.hjson
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ displayName: "GasLibrary"
author: "Zelaux"
description: "Java library for java mods"
main: "gas.GasLibMod"
version: 1.3
version: 1.4
minGameVersion: 129.2
dependencies: ["advanced-content-info"]

0 comments on commit 0daf787

Please sign in to comment.