2023-03-30 17:19:42 +02:00
|
|
|
/*
|
2024-05-29 15:41:00 +02:00
|
|
|
* ChunkAPI
|
|
|
|
|
*
|
2025-06-01 11:48:31 +02:00
|
|
|
* Copyright (C) 2023-2025 FalsePattern, The MEGA Team, LegacyModdingMC contributors
|
2024-05-29 15:41:00 +02:00
|
|
|
* All Rights Reserved
|
|
|
|
|
*
|
2025-06-01 11:48:31 +02:00
|
|
|
* The above copyright notice and this permission notice shall be included
|
|
|
|
|
* in all copies or substantial portions of the Software.
|
2024-05-29 15:41:00 +02:00
|
|
|
*
|
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
2025-06-01 11:48:31 +02:00
|
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
2025-05-06 20:21:42 +02:00
|
|
|
* the Free Software Foundation, only version 3 of the License.
|
2024-05-29 15:41:00 +02:00
|
|
|
*
|
|
|
|
|
* 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
|
2025-06-01 11:48:31 +02:00
|
|
|
* GNU Lesser General Public License for more details.
|
2024-05-29 15:41:00 +02:00
|
|
|
*
|
2025-06-01 11:48:31 +02:00
|
|
|
* 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/>.
|
2023-03-30 17:19:42 +02:00
|
|
|
*/
|
|
|
|
|
|
2023-03-09 21:44:17 +01:00
|
|
|
package com.falsepattern.chunk.internal;
|
|
|
|
|
|
2023-12-13 17:05:49 +01:00
|
|
|
import com.falsepattern.chunk.api.DataRegistry;
|
2023-03-28 23:58:39 +02:00
|
|
|
import com.falsepattern.chunk.internal.vanilla.BiomeManager;
|
|
|
|
|
import com.falsepattern.chunk.internal.vanilla.BlockIDManager;
|
|
|
|
|
import com.falsepattern.chunk.internal.vanilla.BlocklightManager;
|
2023-05-17 21:43:41 +02:00
|
|
|
import com.falsepattern.chunk.internal.vanilla.LightingManager;
|
2023-03-28 23:58:39 +02:00
|
|
|
import com.falsepattern.chunk.internal.vanilla.MetadataManager;
|
|
|
|
|
import com.falsepattern.chunk.internal.vanilla.SkylightManager;
|
2023-03-09 21:44:17 +01:00
|
|
|
|
|
|
|
|
import cpw.mods.fml.common.Mod;
|
2023-03-28 23:58:39 +02:00
|
|
|
import cpw.mods.fml.common.event.FMLInitializationEvent;
|
2023-03-09 21:44:17 +01:00
|
|
|
|
2024-07-10 01:36:11 +02:00
|
|
|
@Mod(modid = Tags.MOD_ID,
|
|
|
|
|
version = Tags.MOD_VERSION,
|
|
|
|
|
name = Tags.MOD_NAME,
|
2025-06-25 02:30:25 +02:00
|
|
|
acceptedMinecraftVersions = "[1.7.10]")
|
2023-03-09 21:44:17 +01:00
|
|
|
public class ChunkAPI {
|
2023-03-28 23:58:39 +02:00
|
|
|
|
2023-03-09 21:44:17 +01:00
|
|
|
@Mod.EventHandler
|
2023-03-30 17:37:31 +02:00
|
|
|
public void init(FMLInitializationEvent event) {
|
2025-09-27 20:53:20 +02:00
|
|
|
DataRegistry.registerDataManager(new BlockIDManager(), 0);
|
|
|
|
|
DataRegistry.registerDataManager(new MetadataManager(), 0);
|
|
|
|
|
DataRegistry.registerDataManager(new LightingManager(), 0);
|
|
|
|
|
DataRegistry.registerDataManager(new BlocklightManager(), 0);
|
|
|
|
|
DataRegistry.registerDataManager(new SkylightManager(), 0);
|
|
|
|
|
DataRegistry.registerDataManager(new BiomeManager(), 0);
|
2023-03-09 21:44:17 +01:00
|
|
|
}
|
|
|
|
|
}
|