Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

Commit 855bcb6

Browse files
committed
E X P E R I M E N T A L
1 parent f4da07b commit 855bcb6

28 files changed

+367
-369
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish build
33
on:
44
push:
55
branches:
6-
- master
6+
- experimental
77

88
jobs:
99
publish:
@@ -26,7 +26,7 @@ jobs:
2626
uses: WalshyDev/blob-builds/gh-action@main
2727
with:
2828
project: Galactifun
29-
releaseChannel: 'Dev'
29+
releaseChannel: 'Experimental'
3030
apiToken: ${{ secrets.BLOB_BUILDS_API_TOKEN }}
3131
file: ./build/libs/galactifun.jar
3232
releaseNotes: ${{ github.event.head_commit.message }}

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ repositories {
1414
}
1515

1616
dependencies {
17-
api("io.github.mooy1:InfinityLib:1.3.7")
1817
compileOnly("io.papermc.paper:paper-api:1.18.2-R0.1-SNAPSHOT")
19-
compileOnly("io.github.TheBusyBiscuit:Slimefun4:RC-37")
18+
compileOnly("com.github.Slimefun:Slimefun4:experimental-SNAPSHOT")
2019
compileOnly("com.google.code.findbugs:jsr305:3.0.2")
20+
api("io.github.mooy1:InfinityLib:1.3.7")
2121

2222
testImplementation("com.github.seeseemelk:MockBukkit-v1.18:2.85.2")
2323
}

src/main/java/io/github/addoncommunity/galactifun/api/items/ProtectingBlock.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ public abstract class ProtectingBlock extends MenuBlock implements EnergyNetComp
4545
protected static final String ENABLED = "enabled";
4646

4747
private static final Set<BlockPosition> allBlocks = new HashSet<>();
48-
private static final ItemStack ENABLED_ITEM = new CustomItemStack(
48+
private static final ItemStack ENABLED_ITEM = CustomItemStack.create(
4949
Material.STRUCTURE_VOID,
5050
"&aEnabled",
5151
"",
5252
"&7Click to disable"
5353
);
54-
private static final ItemStack DISABLED_ITEM = new CustomItemStack(
54+
private static final ItemStack DISABLED_ITEM = CustomItemStack.create(
5555
Material.BARRIER,
5656
"&cDisabled",
5757
"",

src/main/java/io/github/addoncommunity/galactifun/api/items/Rocket.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
package io.github.addoncommunity.galactifun.api.items;
22

3-
import java.util.ArrayList;
4-
import java.util.HashMap;
5-
import java.util.List;
6-
import java.util.Map;
7-
83
import javax.annotation.Nonnull;
94
import javax.annotation.ParametersAreNonnullByDefault;
105

@@ -63,6 +58,10 @@
6358
import io.github.thebusybiscuit.slimefun4.libraries.dough.protection.Interaction;
6459
import io.github.thebusybiscuit.slimefun4.libraries.paperlib.PaperLib;
6560
import io.github.thebusybiscuit.slimefun4.utils.ChatUtils;
61+
import java.util.ArrayList;
62+
import java.util.HashMap;
63+
import java.util.List;
64+
import java.util.Map;
6665
import me.mrCookieSlime.Slimefun.api.BlockStorage;
6766
import net.kyori.adventure.text.Component;
6867
import net.kyori.adventure.text.format.NamedTextColor;
@@ -314,7 +313,7 @@ public List<ItemStack> getDisplayRecipes() {
314313
List<ItemStack> ret = new ArrayList<>();
315314

316315
for (Map.Entry<ItemStack, Double> entry : getAllowedFuels().entrySet()) {
317-
ret.add(new CustomItemStack(
316+
ret.add(CustomItemStack.create(
318317
entry.getKey(),
319318
ItemUtils.getItemName(entry.getKey()),
320319
"&7Efficiency: " + entry.getValue() + 'x'

src/main/java/io/github/addoncommunity/galactifun/api/universe/UniversalObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public abstract class UniversalObject {
3939
UniversalObject(@Nonnull String name, @Nonnull UniversalType type, @Nonnull Orbit orbit,
4040
@Nonnull UniversalObject orbiting, @Nonnull ItemStack baseItem) {
4141
this.name = ChatUtils.removeColorCodes(name);
42-
this.item = new CustomItemStack(baseItem, name, "&7Type: " + type.description());
42+
this.item = CustomItemStack.create(baseItem, name, "&7Type: " + type.description());
4343
this.orbiting = orbiting;
4444
this.orbit = orbit;
4545
this.orbitLevel = orbiting.orbitLevel + 1;

src/main/java/io/github/addoncommunity/galactifun/api/universe/attributes/atmosphere/Gas.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,18 @@
33
import javax.annotation.Nonnull;
44
import javax.annotation.ParametersAreNonnullByDefault;
55

6-
import io.github.addoncommunity.galactifun.api.universe.PlanetaryObject;
7-
import io.github.addoncommunity.galactifun.base.BaseUniverse;
8-
import io.github.addoncommunity.galactifun.core.CoreRecipeType;
9-
106
import lombok.Getter;
117

128
import org.bukkit.inventory.ItemStack;
139

1410
import io.github.addoncommunity.galactifun.Galactifun;
11+
import io.github.addoncommunity.galactifun.api.universe.PlanetaryObject;
1512
import io.github.addoncommunity.galactifun.base.BaseItems;
1613
import io.github.addoncommunity.galactifun.base.BaseMats;
14+
import io.github.addoncommunity.galactifun.base.BaseUniverse;
1715
import io.github.addoncommunity.galactifun.base.items.DiamondAnvil;
1816
import io.github.addoncommunity.galactifun.core.CoreItemGroup;
17+
import io.github.addoncommunity.galactifun.core.CoreRecipeType;
1918
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItem;
2019
import io.github.thebusybiscuit.slimefun4.api.items.SlimefunItemStack;
2120
import io.github.thebusybiscuit.slimefun4.api.recipes.RecipeType;
@@ -37,18 +36,18 @@ public enum Gas {
3736
HYDROCARBONS("725691372e0734bfb57bb03690490661a83f053a3488860df3436ce1caa24d11"),
3837
HYDROGEN("725691372e0734bfb57bb03690490661a83f053a3488860df3436ce1caa24d11"),
3938
AMMONIA("c7a1ece691ad28d17bbbcecb22270c85e1c9581485806264c676de67c272e2d0", CoreRecipeType.CHEMICAL_REACTOR, new ItemStack[] {
40-
NITROGEN.item, HYDROGEN.item.asQuantity(3), null,
39+
NITROGEN.item.item(), HYDROGEN.item.asQuantity(3), null,
4140
null, null, null,
4241
null, null, null
4342
}),
4443
OTHER;
4544

4645
static {
4746
if (SlimefunItems.FREEZER_2.getItem() instanceof Freezer freezer) {
48-
freezer.registerRecipe(10, NITROGEN.item(), SlimefunItems.REACTOR_COOLANT_CELL.asQuantity(4));
47+
freezer.registerRecipe(10, NITROGEN.item().item(), SlimefunItems.REACTOR_COOLANT_CELL.asQuantity(4));
4948
}
5049
if (SlimefunItems.FREEZER_3.getItem() instanceof Freezer freezer) {
51-
freezer.registerRecipe(7, NITROGEN.item(), SlimefunItems.REACTOR_COOLANT_CELL.asQuantity(4));
50+
freezer.registerRecipe(7, NITROGEN.item().item(), SlimefunItems.REACTOR_COOLANT_CELL.asQuantity(4));
5251
}
5352

5453
if (SlimefunItems.COMBUSTION_REACTOR.getItem() instanceof CombustionGenerator generator) {
@@ -59,8 +58,8 @@ public enum Gas {
5958
}
6059

6160
if (BaseItems.DIAMOND_ANVIL.getItem() instanceof DiamondAnvil anvil) {
62-
anvil.registerRecipe(10, HYDROGEN.item().asQuantity(4), HELIUM.item());
63-
anvil.registerRecipe(10, HELIUM.item().asQuantity(4), BaseMats.FUSION_PELLET);
61+
anvil.registerRecipe(10, HYDROGEN.item().asQuantity(4), HELIUM.item().item());
62+
anvil.registerRecipe(10, HELIUM.item().asQuantity(4), BaseMats.FUSION_PELLET.item());
6463
}
6564
}
6665

0 commit comments

Comments
 (0)