Spotless + remove debug code

This commit is contained in:
Connor Colenso committed 2024-01-12 22:06:07 +00:00
1 parent 152b8d4dc5
commit 318af9da8c
3 files changed
+10 -7

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ TileEntityReplacementManager.tileEntityTransformer("GT_TileEntity_Ores", (tag, w
#### b. We do the same here, but now we convert a Furnace TE to a chest TE. We also need to convert the underlying block to a chest. In addtion to this we can provide a transformer that can edit the NBTTagCompound of the TE. This is useful for converting NBT data from one format to another. Here we simply edit the NBT to place stone in the middle slot.
```java
TileEntityReplacementManager.tileEntityTransformer("Furnace", (tag, world) -> {
TileEntityReplacementManager.tileEntityTransformer("Chest", (tag, world) -> {
return new BlockInfo(Blocks.chest, 0, Postea::chestTransformer);
});
+9 -2
View File
@@ -2,8 +2,16 @@ package com.colen.postea;
import static com.colen.postea.API.BlockReplacementManager.blockReplacementMap;
import static com.colen.postea.API.BlockReplacementManager.posteaMarkedIDs;
import static com.colen.postea.Utility.ChunkFixerUtility.POSTEA_UPDATE_CODE;
import static com.colen.postea.Utility.PosteaUtilities.cleanseNBT;
import net.minecraft.block.Block;
import net.minecraft.init.Blocks;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;
import com.colen.postea.API.TileEntityReplacementManager;
import com.colen.postea.Utility.BlockInfo;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
@@ -15,9 +23,8 @@ import cpw.mods.fml.common.event.FMLServerStoppingEvent;
public class Postea {
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event) {
public void preInit(FMLPreInitializationEvent event) { }
}
@Mod.EventHandler
public void onServerStarting(FMLServerAboutToStartEvent event) {
@@ -62,9 +62,6 @@ public class ChunkFixerUtility {
byte[] metadataArray = section.getByteArray("Data16");
byte sectionY = section.getByte("Y");
System.out.println("Y: " + sectionY);
System.out.println("i: " + i);
System.out.println("sections.tagCount(): " + sections.tagCount());
for (int index = 0; index < blockArray.length / 2; index++) {
// Horrible bit jank to recreate the actual IDs, because the array is just a byte array.
@@ -111,7 +108,6 @@ public class ChunkFixerUtility {
}
}
}
}
private static void transformTileEntities(NBTTagCompound levelCompoundTag, World world) {