Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package dev.redstudio.alfheim.lighting;

// stub class for Alfheim v1.6+
public class LightingEngine {
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import net.minecraftforge.fml.common.Optional;
import net.minecraftforge.fml.relauncher.FMLLaunchHandler;

import dev.redstudio.alfheim.lighting.LightingEngine;
import mod.acgaming.universaltweaks.mods.compactmachines.memory.DummyWorld;
import org.dave.compactmachines3.world.ProxyWorld;
import org.spongepowered.asm.mixin.*;
Expand Down Expand Up @@ -166,10 +167,9 @@ public World init()
return this;
}

@SuppressWarnings("NullableProblems")
@Override
@Optional.Method(modid = "alfheim")
public int getLightFromNeighborsFor(EnumSkyBlock type, BlockPos pos)
public int getLightFromNeighborsFor(@Nonnull EnumSkyBlock type, @Nonnull BlockPos pos)
{
return 15;
}
Expand All @@ -180,4 +180,10 @@ public int getLightFromNeighborsFor(EnumSkyBlock type, BlockPos pos)
{
return 15;
}

@SuppressWarnings({"MissingUnique", "unused"})
@Optional.Method(modid = "alfheim")
public LightingEngine getAlfheim$lightingEngine() {
return null;
}
}