Skip to content

Commit bd6cc9d

Browse files
committed
1.0.0
1 parent 0c79122 commit bd6cc9d

File tree

918 files changed

+12450
-4403
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

918 files changed

+12450
-4403
lines changed

_config.yml

-1
This file was deleted.

build.gradle

+5-4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ archivesBaseName = modFileName
1919

2020
sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = compileJava.targetCompatibility = '1.8' // Need this here so eclipse task generates correctly.
2121

22+
println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
2223
minecraft {
2324
// The mappings can be changed at any time, and must be in the following format.
2425
// snapshot_YYYYMMDD Snapshot are built nightly.
@@ -89,7 +90,7 @@ dependencies {
8990
// Specify the version of Minecraft to use, If this is any group other then 'net.minecraft' it is assumed
9091
// that the dep is a ForgeGradle 'patcher' dependency. And it's patches will be applied.
9192
// The userdev artifact is a special name and will get all sorts of transformations applied to it.
92-
minecraft "net.minecraftforge:forge:" + modMinecraftVersion + "-" + modForgeVersion
93+
minecraft 'net.minecraftforge:forge:1.16.2-33.0.10'
9394

9495
// You may put jars on which you depend on in ./libs or you may define them like so..
9596
// compile "some.group:artifact:version:classifier"
@@ -115,12 +116,12 @@ dependencies {
115116
jar {
116117
manifest {
117118
attributes([
118-
"Specification-Title": modId,
119-
"Specification-Vendor": modGroup,
119+
"Specification-Title": "examplemod",
120+
"Specification-Vendor": "examplemodsareus",
120121
"Specification-Version": "1", // We are version 1 of ourselves
121122
"Implementation-Title": project.name,
122123
"Implementation-Version": "${version}",
123-
"Implementation-Vendor" :modGroup,
124+
"Implementation-Vendor" :"examplemodsareus",
124125
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
125126
])
126127
}

gradle.properties

+5-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
org.gradle.jvmargs=-Xmx6G
44
org.gradle.daemon=false
55

6-
modVersion = 0.1.5
7-
modMinecraftVersion = 1.15.2
8-
modForgeVersion = 31.1.78
6+
modVersion = 1.0.0
7+
modMinecraftVersion = 1.16.2
8+
modForgeVersion = 33.0.10
99
mappingsChannel = snapshot
10-
mappingsVersion = 20200521-1.15.1
10+
mappingsVersion = 20200723-1.16.1
1111
modId = nnow
1212
modGroup = com.github.wimpingego.nnow
13-
modFileName = NeverNeededOrWanted
13+
modFileName = NeverNeededOrWanted

src/main/java/com/github/wimpingego/nnow/NNOW.java

+41-14
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@
33
import org.apache.logging.log4j.LogManager;
44
import org.apache.logging.log4j.Logger;
55

6-
import com.github.wimpingego.nnow.container.ModContainerTypes;
7-
import com.github.wimpingego.nnow.entities.ModTileEntityTypes;
8-
import com.github.wimpingego.nnow.init.BlockList;
9-
import com.github.wimpingego.nnow.init.ItemList;
10-
import com.github.wimpingego.nnow.init.SoundList;
6+
import com.github.wimpingego.nnow.init.*;
117
import com.github.wimpingego.nnow.util.ClientRenderer;
8+
import com.github.wimpingego.nnow.util.MetalClientRenderer;
129
import com.github.wimpingego.nnow.util.Trollnventory;
1310
import com.github.wimpingego.nnow.util.WitherEvents;
1411
import com.github.wimpingego.nnow.util.ModConfigs;
@@ -44,30 +41,42 @@ public class NNOW
4441

4542
public static final ItemGroup NNOW_TAB = new ItemGroup("NNOWTab") {
4643
public ItemStack createIcon() {
47-
return new ItemStack(ItemList.MAGNET.get());
44+
return new ItemStack(ItemList.ENDER_BAG.get());
4845
}
4946
};
50-
47+
5148
public NNOW()
5249
{
53-
50+
5451
final IEventBus modEventBus = FMLJavaModLoadingContext.get().getModEventBus();
5552

53+
ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON, ModConfigs.COMMON_CONFIG);
54+
ModConfigs.load(ModConfigs.COMMON_CONFIG, FMLPaths.CONFIGDIR.get().resolve("nnow-common.toml"));
55+
5656
modEventBus.addListener(this::setup);
5757
modEventBus.addListener(this::clientSetup);
5858

5959
SoundList.SOUNDS.register(modEventBus);
6060
ItemList.ITEMS.register(modEventBus);
61+
62+
if(ModConfigs.METALS_ITEMS_LOADED.get() == true)
63+
{
64+
MetalItemList.ITEMS.register(modEventBus);
65+
}
66+
6167
BlockList.BLOCKS.register(modEventBus);
6268
BlockList.NO_ITEM_BLOCK.register(modEventBus);
63-
ModTileEntityTypes.TILE_ENTITY_TYPES.register(modEventBus);
64-
ModContainerTypes.CONTAINER_TYPES.register(modEventBus);
6569

70+
if(ModConfigs.METALS_ITEMS_LOADED.get() == true)
71+
{
72+
MetalBlockList.BLOCKS.register(modEventBus);
73+
MetalBlockList.NO_ITEM_BLOCK.register(modEventBus);
74+
}
75+
6676
MinecraftForge.EVENT_BUS.register(this);
67-
//MinecraftForge.EVENT_BUS.register(Trollnventory.class);
6877

69-
ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON, ModConfigs.COMMON_CONFIG);
70-
ModConfigs.load(ModConfigs.COMMON_CONFIG, FMLPaths.CONFIGDIR.get().resolve("nnow-common.toml"));
78+
//ModLoadingContext.get().registerConfig(ModConfig.Type.COMMON, ModConfigs.COMMON_CONFIG);
79+
///ModConfigs.load(ModConfigs.COMMON_CONFIG, FMLPaths.CONFIGDIR.get().resolve("nnow-common.toml"));
7180

7281
IEventBus forgeEventBus = MinecraftForge.EVENT_BUS;
7382

@@ -84,7 +93,18 @@ public static void createBlockItems(final RegistryEvent.Register<Item> event) {
8493
final BlockItem blockItem = new BlockItem(block, properties);
8594
blockItem.setRegistryName(block.getRegistryName());
8695
registry.register(blockItem);
87-
});
96+
});
97+
98+
if(ModConfigs.METALS_ITEMS_LOADED.get() == true)
99+
{
100+
MetalBlockList.BLOCKS.getEntries().stream().map(RegistryObject::get).forEach(block -> {
101+
final Item.Properties properties = new Item.Properties().group(NNOW_TAB);
102+
final BlockItem blockItem = new BlockItem(block, properties);
103+
blockItem.setRegistryName(block.getRegistryName());
104+
registry.register(blockItem);
105+
});
106+
}
107+
88108
}
89109

90110
private void setup(final FMLCommonSetupEvent event)
@@ -100,11 +120,18 @@ private void setup(final FMLCommonSetupEvent event)
100120
VillagerUtil.fixPOITypeBlockStates(PointOfInterestTypes.END_TRADER);
101121
VillagerUtil.fixPOITypeBlockStates(PointOfInterestTypes.SEA_TRADER);
102122
VillagerUtil.fixPOITypeBlockStates(PointOfInterestTypes.SEA_FISHERMAN);
123+
VillagerUtil.fixPOITypeBlockStates(PointOfInterestTypes.NETHER_TRADER);
124+
VillagerUtil.fixPOITypeBlockStates(PointOfInterestTypes.INGOT_TRADER);
103125
}
104126

105127
private void clientSetup(final FMLClientSetupEvent event)
106128
{
107129
ClientRenderer.registerBlocks();
130+
131+
if(ModConfigs.METALS_ITEMS_LOADED.get() == true)
132+
{
133+
MetalClientRenderer.registerBlocks();
134+
}
108135
}
109136

110137
}

src/main/java/com/github/wimpingego/nnow/client/gui/BookshelfChestScreen.java

-49
This file was deleted.

src/main/java/com/github/wimpingego/nnow/client/gui/SafeChestScreen.java

-49
This file was deleted.

src/main/java/com/github/wimpingego/nnow/container/BookshelfChestContainer.java

-98
This file was deleted.

src/main/java/com/github/wimpingego/nnow/container/ModContainerTypes.java

-21
This file was deleted.

0 commit comments

Comments
 (0)