-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cca1203
commit 2ec1b62
Showing
126 changed files
with
4,049 additions
and
1,321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ pluginManagement { | |
} | ||
} | ||
|
||
rootProject.name = 'lambdynamiclights' | ||
rootProject.name = 'dynamiclightsreforged' |
22 changes: 22 additions & 0 deletions
22
src/main/java/me/lambdaurora/lambdynlights/DynLightsResourceListener.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package me.lambdaurora.lambdynlights; | ||
|
||
import com.google.gson.Gson; | ||
import com.google.gson.GsonBuilder; | ||
import me.lambdaurora.lambdynlights.api.item.ItemLightSources; | ||
import net.minecraft.resources.IResourceManager; | ||
import net.minecraftforge.resource.IResourceType; | ||
import net.minecraftforge.resource.ISelectiveResourceReloadListener; | ||
|
||
import java.util.function.Predicate; | ||
|
||
public class DynLightsResourceListener implements ISelectiveResourceReloadListener | ||
{ | ||
private static final Gson GSON = new GsonBuilder().setPrettyPrinting().serializeNulls().setLenient().create(); | ||
|
||
@Override | ||
public void onResourceManagerReload(IResourceManager manager, Predicate<IResourceType> resourcePredicate) | ||
{ | ||
ItemLightSources.load(manager); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.