-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adaptation to the architectural diagram between 1.12.2/1.16.5 (Part 1)
- Loading branch information
1 parent
87da197
commit 47037a3
Showing
130 changed files
with
829 additions
and
949 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
/** | ||
* | ||
*/ | ||
public final class ProjectStructure | ||
public final class DynamicSpawnControlStructure | ||
{ | ||
/** | ||
* | ||
|
51 changes: 51 additions & 0 deletions
51
dynamicspawncontrol-1.12.2/src/main/java/org/imesense/dynamicspawncontrol/OnEventDummy.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,51 @@ | ||
package org.imesense.dynamicspawncontrol; | ||
|
||
import net.minecraftforge.fml.common.Mod; | ||
import org.imesense.dynamicspawncontrol.DynamicSpawnControlStructure; | ||
import org.imesense.dynamicspawncontrol.core.util.CodeGeneric; | ||
import org.imesense.dynamicspawncontrol.core.api.IDebug; | ||
import org.imesense.dynamicspawncontrol.core.logfile.Log; | ||
|
||
/** | ||
* | ||
*/ | ||
@Mod.EventBusSubscriber(modid = DynamicSpawnControlStructure.STRUCT_INFO_MOD.MOD_ID) | ||
public final class OnEventDummy implements IDebug | ||
{ | ||
/** | ||
* | ||
*/ | ||
private static boolean instanceExists = false; | ||
|
||
/** | ||
* | ||
*/ | ||
public OnEventDummy() | ||
{ | ||
CodeGeneric.printInitClassToLog(this.getClass()); | ||
|
||
if (instanceExists) | ||
{ | ||
Log.writeDataToLogFile(2, String.format("An instance of [%s] already exists!", this.getClass().getSimpleName())); | ||
throw new RuntimeException(); | ||
} | ||
|
||
instanceExists = true; | ||
} | ||
|
||
//@SubscribeEvent | ||
//public static void onFogDensity(EntityViewRenderEvent.FogDensity event) { | ||
// Задание плотности тумана | ||
// event.setDensity(0.05f); // Чем больше значение, тем плотнее туман | ||
// GlStateManager.setFog(GlStateManager.FogMode.EXP); | ||
// event.setCanceled(true); // Обязательно отменяем стандартное поведение, чтобы применился наш туман | ||
// } | ||
|
||
//@SubscribeEvent | ||
// public static void onFogColors(EntityViewRenderEvent.FogColors event) { | ||
// Установка красного цвета для тумана | ||
// event.setRed(0.7f); // Красный оттенок | ||
// event.setGreen(0.2f); // Зеленый оттенок | ||
// event.setBlue(0.2f); // Синий оттенок | ||
// } | ||
} |
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
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.