Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with Create: Garnished, Garnished Additions, and Hibernal Herbs #506

Open
wants to merge 18 commits into
base: 1.19/dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 15 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions common/src/main/java/com/railwayteam/railways/ModSetup.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
import com.railwayteam.railways.compat.tracks.mods.*;
import com.railwayteam.railways.content.custom_tracks.casing.CasingCollisionUtils;
import com.railwayteam.railways.registry.*;
import com.railwayteam.railways.comapt.tracks.mods.GarnishedTrackCompat;
import com.railwayteam.railways.comapt.tracks.mods.GarnishedAdditionsTrackCompat;
import com.railwayteam.railways.comapt.tracks.mods.HibernalHerbsTrackCompat;
DakotaPride marked this conversation as resolved.
Show resolved Hide resolved

public class ModSetup {
public static void register() {
Expand Down Expand Up @@ -52,5 +55,8 @@ public static void register() {
BiomesOPlentyTrackCompat.register();
DreamsAndDesiresTrackCompat.register();
QuarkTrackCompat.register();
GarnishedTrackCompat.register();
GarnishedAdditionsTrackCompat.register();
HibernalHerbsTrackCompat.register();
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ public enum Mods {
QUARK("quark"),
MALILIB("malilib"),
TWEAKEROO("tweakeroo"),
EXTENDEDFLYWHEELS("extendedflywheels")
EXTENDEDFLYWHEELS("extendedflywheels"),
// Create: Garnished
GARNISHED("garnished"),
// Garnished Additions
GARNISHED_ADD("garnished_additions"),
HIBERNAL_HERBS("hibernalherbs")
;

public final boolean isLoaded;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Steam 'n' Rails
* Copyright (c) 2022-2024 The Railways Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package com.railwayteam.railways.compat.tracks.mods;

import com.railwayteam.railways.Railways;
import com.railwayteam.railways.compat.Mods;
import com.railwayteam.railways.compat.tracks.GenericTrackCompat;

public class GarnishedAdditionsTrackCompat extends GenericTrackCompat {
GarnishedAdditionsTrackCompat() {
super(Mods.GARNISHED_ADD);
}

private static boolean registered = false;
public static void register() {
if (registered) {
Railways.LOGGER.error("Duplicate registration of Garnished Additions compat");
return;
}
registered = true;
Railways.LOGGER.info("Registering tracks for Garnished Additions");
new GarnishedCompat().register(
"ethereal"
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/*
* Steam 'n' Rails
* Copyright (c) 2022-2024 The Railways Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package com.railwayteam.railways.compat.tracks.mods;

import com.railwayteam.railways.Railways;
import com.railwayteam.railways.compat.Mods;
import com.railwayteam.railways.compat.tracks.GenericTrackCompat;

public class GarnishedTrackCompat extends GenericTrackCompat {
GarnishedTrackCompat() {
super(Mods.GARNISHED);
}

private static boolean registered = false;
public static void register() {
if (registered) {
Railways.LOGGER.error("Duplicate registration of Garnished compat");
return;
}
registered = true;
Railways.LOGGER.info("Registering tracks for Garnished");
new GarnishedCompat().register(
"nut",
"sepia"//,

// In Create: Garnished v1.9, not currently implemented
// "zultanite",
// "red_zultanite",
// "orange_zultanite",
// "yellow_zultanite",
// "green_zultanite",
// "lime_zultanite",
// "blue_zultanite",
// "light_blue_zultanite",
// "cyan_zultanite",
// "purple_zultanite",
// "magenta_zultanite",
// "pink_zultanite",
// "black_zultanite",
// "gray_zultanite",
// "light_gray_zultanite",
// "white_zultanite",
// "brown_zultanite"
);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/*
* Steam 'n' Rails
* Copyright (c) 2022-2024 The Railways Team
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/

package com.railwayteam.railways.compat.tracks.mods;

import com.railwayteam.railways.Railways;
import com.railwayteam.railways.compat.Mods;
import com.railwayteam.railways.compat.tracks.GenericTrackCompat;

public class HibernalHerbsTrackCompat extends GenericTrackCompat {
HibernalHerbsTrackCompat() {
super(Mods.HIBERNAL_HERBS);
}

private static boolean registered = false;
public static void register() {
if (registered) {
Railways.LOGGER.error("Duplicate registration of Hibernal Herbs compat");
return;
}
registered = true;
Railways.LOGGER.info("Registering tracks for Hibernal Herbs");
new GarnishedCompat().register(
"myqueste"
);
}
}
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Loading