Skip to content

Commit

Permalink
smaller adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
ToCraft committed Nov 14, 2024
1 parent 8f24c9d commit cab53c0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.jetbrains.annotations.NotNull;

@SuppressWarnings("unused")
@ApiStatus.Internal
public final class CTerrainGeneration {
public static final String MODID = "ctgen";

Expand Down
2 changes: 1 addition & 1 deletion common/src/main/java/dev/tocraft/ctgen/runtime/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
import java.util.Map;

@SuppressWarnings("unused")
public class Main {
public final class Main {
private static final String JAR_FILE_NAME = Path.of(Main.class
.getProtectionDomain()
.getCodeSource()
Expand Down
2 changes: 2 additions & 0 deletions fabric/src/main/java/dev/tocraft/ctgen/fabric/CTGDataGen.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
import net.minecraft.data.DataProvider;
import net.minecraft.data.registries.RegistriesDatapackGenerator;
import net.minecraft.data.registries.RegistryPatchGenerator;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.NotNull;

import java.util.concurrent.CompletableFuture;

@ApiStatus.Internal
public final class CTGDataGen implements DataGeneratorEntrypoint {
private static final RegistrySetBuilder BUILDER = new RegistrySetBuilder().add(CTRegistries.ZONES_KEY, Zones::bootstrap);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
import net.fabricmc.fabric.api.event.registry.FabricRegistryBuilder;
import net.minecraft.core.Registry;
import net.minecraft.resources.ResourceKey;
import org.jetbrains.annotations.ApiStatus;

public class FabricPlatformService implements PlatformService {
@ApiStatus.Internal
public final class FabricPlatformService implements PlatformService {
@Override
public <T> Registry<T> createSimpleRegistry(ResourceKey<Registry<T>> key) {
return FabricRegistryBuilder.createSimple(key).buildAndRegister();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
import net.minecraft.core.Registry;
import net.minecraft.resources.ResourceKey;
import net.neoforged.neoforge.registries.RegistryBuilder;
import org.jetbrains.annotations.ApiStatus;

public class NeoForgePlatformService implements PlatformService {
@ApiStatus.Internal
public final class NeoForgePlatformService implements PlatformService {
@Override
public <T> Registry<T> createSimpleRegistry(ResourceKey<Registry<T>> key) {
return new RegistryBuilder<>(key).create();
Expand Down

0 comments on commit cab53c0

Please sign in to comment.