my ass is bleeding

This commit is contained in:
Boblet 2024-10-16 17:00:07 +02:00
parent ee1d3b37cd
commit a1401b47e2
17 changed files with 69 additions and 11 deletions

View File

@ -1,5 +1,6 @@
package api.hbm.energymk2; package api.hbm.energymk2;
import com.hbm.interfaces.NotableComments;
import com.hbm.packet.PacketDispatcher; import com.hbm.packet.PacketDispatcher;
import com.hbm.packet.toclient.AuxParticlePacketNT; import com.hbm.packet.toclient.AuxParticlePacketNT;
import com.hbm.util.Compat; import com.hbm.util.Compat;
@ -12,6 +13,7 @@ import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.common.util.ForgeDirection;
/** If it receives energy, use this */ /** If it receives energy, use this */
@NotableComments
public interface IEnergyReceiverMK2 extends IEnergyHandlerMK2 { public interface IEnergyReceiverMK2 extends IEnergyHandlerMK2 {
public default long transferPower(long power) { public default long transferPower(long power) {

View File

@ -5,6 +5,7 @@ import java.util.HashSet;
import java.util.Map.Entry; import java.util.Map.Entry;
import java.util.Set; import java.util.Set;
import com.hbm.interfaces.NotableComments;
import com.hbm.util.fauxpointtwelve.BlockPos; import com.hbm.util.fauxpointtwelve.BlockPos;
import com.hbm.util.fauxpointtwelve.DirPos; import com.hbm.util.fauxpointtwelve.DirPos;
@ -148,6 +149,7 @@ public class Nodespace {
} }
} }
@NotableComments
public static class PowerNode { public static class PowerNode {
public BlockPos[] positions; public BlockPos[] positions;

View File

@ -10,6 +10,7 @@ import com.google.gson.Gson;
import com.google.gson.JsonElement; import com.google.gson.JsonElement;
import com.google.gson.JsonObject; import com.google.gson.JsonObject;
import com.google.gson.stream.JsonWriter; import com.google.gson.stream.JsonWriter;
import com.hbm.interfaces.NotableComments;
import com.hbm.main.MainRegistry; import com.hbm.main.MainRegistry;
import com.hbm.tileentity.IConfigurableMachine; import com.hbm.tileentity.IConfigurableMachine;
import com.hbm.tileentity.TileMappings; import com.hbm.tileentity.TileMappings;
@ -20,6 +21,7 @@ import com.hbm.tileentity.TileMappings;
* tile entities from the registry automatically and generate config options. * tile entities from the registry automatically and generate config options.
* @author hbm * @author hbm
*/ */
@NotableComments
public class MachineDynConfig { public class MachineDynConfig {
public static final Gson gson = new Gson(); public static final Gson gson = new Gson();

View File

@ -1,6 +1,7 @@
package com.hbm.entity.mob.siege; package com.hbm.entity.mob.siege;
import com.hbm.entity.mob.EntityBurrowingSwingingBase; import com.hbm.entity.mob.EntityBurrowingSwingingBase;
import com.hbm.interfaces.NotableComments;
import net.minecraft.entity.IEntityLivingData; import net.minecraft.entity.IEntityLivingData;
import net.minecraft.entity.SharedMonsterAttributes; import net.minecraft.entity.SharedMonsterAttributes;
@ -21,6 +22,7 @@ import net.minecraft.world.World;
//well it ain't fucking funny //well it ain't fucking funny
//this stupid fucking random ass bullshit is the P R E C I S E reason i loathe working with entities //this stupid fucking random ass bullshit is the P R E C I S E reason i loathe working with entities
//honest to fucking god was the entire mojang dev team on crack when they wrote this? //honest to fucking god was the entire mojang dev team on crack when they wrote this?
@NotableComments
public class EntitySiegeTunneler extends EntityBurrowingSwingingBase { public class EntitySiegeTunneler extends EntityBurrowingSwingingBase {
public EntitySiegeTunneler(World world) { public EntitySiegeTunneler(World world) {

View File

@ -0,0 +1,7 @@
package com.hbm.interfaces;
/*
* Historically, NTM has had so many comments that are either funny or lengthy rants or other silly shit that it's
* hard to keep track of all of it, this annotation shall be used on classes with noteworthy comments.
*/
public @interface NotableComments { }

View File

@ -20,6 +20,7 @@ import com.hbm.hazard.HazardData;
import com.hbm.hazard.HazardEntry; import com.hbm.hazard.HazardEntry;
import com.hbm.hazard.HazardRegistry; import com.hbm.hazard.HazardRegistry;
import com.hbm.hazard.HazardSystem; import com.hbm.hazard.HazardSystem;
import com.hbm.interfaces.NotableComments;
import com.hbm.inventory.RecipesCommon.ComparableStack; import com.hbm.inventory.RecipesCommon.ComparableStack;
import com.hbm.inventory.material.MaterialShapes; import com.hbm.inventory.material.MaterialShapes;
import com.hbm.inventory.material.Mats; import com.hbm.inventory.material.Mats;
@ -45,6 +46,7 @@ import net.minecraftforge.oredict.OreDictionary;
import net.minecraftforge.oredict.OreDictionary.OreRegisterEvent; import net.minecraftforge.oredict.OreDictionary.OreRegisterEvent;
//the more i optimize this, the more it starts looking like gregtech //the more i optimize this, the more it starts looking like gregtech
@NotableComments
public class OreDictManager { public class OreDictManager {
/** Alternate, additional names for ore dict registration. Used mostly for DictGroups */ /** Alternate, additional names for ore dict registration. Used mostly for DictGroups */

View File

@ -1,5 +1,7 @@
package com.hbm.inventory; package com.hbm.inventory;
import com.hbm.interfaces.NotableComments;
import net.minecraft.inventory.IInventory; import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot; import net.minecraft.inventory.Slot;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
@ -8,6 +10,7 @@ import net.minecraft.item.ItemStack;
* Because vanilla slots have severe mental disabilities that prevent them from working as expected. * Because vanilla slots have severe mental disabilities that prevent them from working as expected.
* @author hbm * @author hbm
*/ */
@NotableComments
public class SlotNonRetarded extends Slot { public class SlotNonRetarded extends Slot {
public SlotNonRetarded(IInventory inventory, int id, int x, int y) { public SlotNonRetarded(IInventory inventory, int id, int x, int y) {

View File

@ -4,6 +4,7 @@ import java.util.Arrays;
import org.lwjgl.opengl.GL11; import org.lwjgl.opengl.GL11;
import com.hbm.interfaces.NotableComments;
import com.hbm.inventory.container.ContainerAutocrafter; import com.hbm.inventory.container.ContainerAutocrafter;
import com.hbm.lib.RefStrings; import com.hbm.lib.RefStrings;
import com.hbm.tileentity.machine.TileEntityMachineAutocrafter; import com.hbm.tileentity.machine.TileEntityMachineAutocrafter;
@ -15,6 +16,7 @@ import net.minecraft.inventory.Slot;
import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.ResourceLocation; import net.minecraft.util.ResourceLocation;
@NotableComments
public class GUIAutocrafter extends GuiInfoContainer { public class GUIAutocrafter extends GuiInfoContainer {
private static ResourceLocation texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/processing/gui_autocrafter.png"); private static ResourceLocation texture = new ResourceLocation(RefStrings.MODID + ":textures/gui/processing/gui_autocrafter.png");

View File

@ -1,11 +1,13 @@
package com.hbm.items.block; package com.hbm.items.block;
import com.hbm.blocks.ModBlocks; import com.hbm.blocks.ModBlocks;
import com.hbm.interfaces.NotableComments;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.block.BlockSlab; import net.minecraft.block.BlockSlab;
import net.minecraft.item.ItemSlab; import net.minecraft.item.ItemSlab;
@NotableComments
public class ItemModSlab extends ItemSlab { public class ItemModSlab extends ItemSlab {
public ItemModSlab(Block block) { public ItemModSlab(Block block) {

View File

@ -52,7 +52,7 @@ public class XFactory9mm {
).setUnlocalizedName("gun_greasegun").setTextureName(RefStrings.MODID + ":gun_darter"); ).setUnlocalizedName("gun_greasegun").setTextureName(RefStrings.MODID + ":gun_darter");
ModItems.gun_lag = new ItemGunBaseNT(new GunConfig() ModItems.gun_lag = new ItemGunBaseNT(new GunConfig()
.dura(1_700).draw(15).inspect(31).crosshair(Crosshair.L_CIRCLE).smoke(LAMBDA_SMOKE) .dura(1_700).draw(15).inspect(31).crosshair(Crosshair.CIRCLE).smoke(LAMBDA_SMOKE)
.rec(new Receiver(0) .rec(new Receiver(0)
.dmg(15F).delay(4).dry(40).spread(0.005F).reload(60).jam(55).sound("hbm:weapon.fire.blackPowder", 1.0F, 1.0F) .dmg(15F).delay(4).dry(40).spread(0.005F).reload(60).jam(55).sound("hbm:weapon.fire.blackPowder", 1.0F, 1.0F)
.mag(new MagazineFullReload(0, 17).addConfigs(p9_sp, p9_fmj, p9_jhp, p9_ap)) .mag(new MagazineFullReload(0, 17).addConfigs(p9_sp, p9_fmj, p9_jhp, p9_ap))
@ -63,7 +63,7 @@ public class XFactory9mm {
).setUnlocalizedName("gun_lag").setTextureName(RefStrings.MODID + ":gun_darter"); ).setUnlocalizedName("gun_lag").setTextureName(RefStrings.MODID + ":gun_darter");
ModItems.gun_uzi = new ItemGunBaseNT(new GunConfig() ModItems.gun_uzi = new ItemGunBaseNT(new GunConfig()
.dura(3_000).draw(15).inspect(31).crosshair(Crosshair.L_CIRCLE).smoke(LAMBDA_SMOKE) .dura(3_000).draw(15).inspect(31).crosshair(Crosshair.CIRCLE).smoke(LAMBDA_SMOKE)
.rec(new Receiver(0) .rec(new Receiver(0)
.dmg(7.5F).delay(2).dry(25).auto(true).spread(0.005F).reload(55).jam(50).sound("hbm:weapon.fire.blackPowder", 1.0F, 1.0F) .dmg(7.5F).delay(2).dry(25).auto(true).spread(0.005F).reload(55).jam(50).sound("hbm:weapon.fire.blackPowder", 1.0F, 1.0F)
.mag(new MagazineFullReload(0, 30).addConfigs(p9_sp, p9_fmj, p9_jhp, p9_ap)) .mag(new MagazineFullReload(0, 30).addConfigs(p9_sp, p9_fmj, p9_jhp, p9_ap))
@ -114,7 +114,7 @@ public class XFactory9mm {
return null; return null;
}; };
public static BiFunction<ItemStack, AnimType, BusAnimation> LAMBDA_UZI_ANIMS = (stack, type) -> { @SuppressWarnings("incomplete-switch") public static BiFunction<ItemStack, AnimType, BusAnimation> LAMBDA_UZI_ANIMS = (stack, type) -> {
switch(type) { switch(type) {
case EQUIP: return new BusAnimation() case EQUIP: return new BusAnimation()
.addBus("EQUIP", new BusAnimationSequence().addPos(80, 0, 0, 0).addPos(80, 0, 0, 500).addPos(0, 0, 0, 500, IType.SIN_FULL)) .addBus("EQUIP", new BusAnimationSequence().addPos(80, 0, 0, 0).addPos(80, 0, 0, 500).addPos(0, 0, 0, 500, IType.SIN_FULL))

View File

@ -294,13 +294,6 @@ public class MainRegistry {
if(WorldConfig.enableCraterBiomes) BiomeGenCraterBase.initDictionary(); if(WorldConfig.enableCraterBiomes) BiomeGenCraterBase.initDictionary();
/*Library.superuser.add("192af5d7-ed0f-48d8-bd89-9d41af8524f8");
Library.superuser.add("5aee1e3d-3767-4987-a222-e7ce1fbdf88e");
Library.superuser.add("937c9804-e11f-4ad2-a5b1-42e62ac73077");
Library.superuser.add("3af1c262-61c0-4b12-a4cb-424cc3a9c8c0");
Library.superuser.add("4729b498-a81c-42fd-8acd-20d6d9f759e0");
Library.superuser.add("c3f5e449-6d8c-4fe3-acc9-47ef50e7e7ae");*/
aMatSchrab.customCraftingMaterial = ModItems.ingot_schrabidium; aMatSchrab.customCraftingMaterial = ModItems.ingot_schrabidium;
aMatHaz.customCraftingMaterial = ModItems.hazmat_cloth; aMatHaz.customCraftingMaterial = ModItems.hazmat_cloth;
aMatHaz2.customCraftingMaterial = ModItems.hazmat_cloth_red; aMatHaz2.customCraftingMaterial = ModItems.hazmat_cloth_red;

View File

@ -5,6 +5,7 @@ import java.util.Iterator;
import java.util.List; import java.util.List;
import com.hbm.explosion.vanillant.standard.ExplosionEffectStandard; import com.hbm.explosion.vanillant.standard.ExplosionEffectStandard;
import com.hbm.interfaces.NotableComments;
import cpw.mods.fml.common.network.simpleimpl.IMessage; import cpw.mods.fml.common.network.simpleimpl.IMessage;
import cpw.mods.fml.common.network.simpleimpl.IMessageHandler; import cpw.mods.fml.common.network.simpleimpl.IMessageHandler;
@ -20,6 +21,7 @@ import net.minecraft.world.ChunkPosition;
* @author hbm * @author hbm
* *
*/ */
@NotableComments
public class ExplosionVanillaNewTechnologyCompressedAffectedBlockPositionDataForClientEffectsAndParticleHandlingPacket implements IMessage { public class ExplosionVanillaNewTechnologyCompressedAffectedBlockPositionDataForClientEffectsAndParticleHandlingPacket implements IMessage {
private double posX; private double posX;

View File

@ -28,12 +28,15 @@ import com.hbm.util.fauxpointtwelve.DirPos;
import api.hbm.fluid.IFluidStandardTransceiver; import api.hbm.fluid.IFluidStandardTransceiver;
import cpw.mods.fml.common.network.NetworkRegistry.TargetPoint; import cpw.mods.fml.common.network.NetworkRegistry.TargetPoint;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBuf;
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.Container; import net.minecraft.inventory.Container;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntityFurnace; import net.minecraft.tileentity.TileEntityFurnace;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.Vec3; import net.minecraft.util.Vec3;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.common.util.ForgeDirection;
@ -317,6 +320,31 @@ public class TileEntityMachineRotaryFurnace extends TileEntityMachinePolluting i
@Override public boolean isItemValidForSlot(int x, int y, int z, int slot, ItemStack stack) { return slot < 3 || slot == 4; } @Override public boolean isItemValidForSlot(int x, int y, int z, int slot, ItemStack stack) { return slot < 3 || slot == 4; }
@Override public boolean canExtractItem(int x, int y, int z, int slot, ItemStack stack, int side) { return false; } @Override public boolean canExtractItem(int x, int y, int z, int slot, ItemStack stack, int side) { return false; }
AxisAlignedBB bb = null;
@Override
public AxisAlignedBB getRenderBoundingBox() {
if(bb == null) {
bb = AxisAlignedBB.getBoundingBox(
xCoord - 2,
yCoord,
zCoord - 2,
xCoord + 3,
yCoord + 5,
zCoord + 3
);
}
return bb;
}
@Override
@SideOnly(Side.CLIENT)
public double getMaxRenderDistanceSquared() {
return 65536.0D;
}
@Override @Override
public int[] getAccessibleSlotsFromSide(int x, int y, int z, int side) { public int[] getAccessibleSlotsFromSide(int x, int y, int z, int side) {
BlockPos pos = new BlockPos(x, y, z); BlockPos pos = new BlockPos(x, y, z);

View File

@ -3,6 +3,7 @@ package com.hbm.tileentity.network;
import java.util.HashMap; import java.util.HashMap;
import java.util.Iterator; import java.util.Iterator;
import com.hbm.interfaces.NotableComments;
import com.hbm.tileentity.network.RequestNetwork.PathNode; import com.hbm.tileentity.network.RequestNetwork.PathNode;
import com.hbm.util.HashedSet; import com.hbm.util.HashedSet;
import com.hbm.util.ParticleUtil; import com.hbm.util.ParticleUtil;
@ -24,6 +25,7 @@ import net.minecraft.world.World;
* @author hbm * @author hbm
* *
*/ */
@NotableComments
public abstract class TileEntityRequestNetwork extends TileEntity { public abstract class TileEntityRequestNetwork extends TileEntity {
public HashedSet<PathNode> reachableNodes = new HashedSet(); public HashedSet<PathNode> reachableNodes = new HashedSet();

View File

@ -3,6 +3,8 @@ package com.hbm.util;
import java.util.Iterator; import java.util.Iterator;
import java.util.Map; import java.util.Map;
import com.hbm.interfaces.NotableComments;
import cpw.mods.fml.relauncher.ReflectionHelper; import cpw.mods.fml.relauncher.ReflectionHelper;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.init.Blocks; import net.minecraft.init.Blocks;
@ -14,6 +16,7 @@ import net.minecraft.stats.StatCrafting;
import net.minecraft.stats.StatList; import net.minecraft.stats.StatList;
import net.minecraft.util.ChatComponentTranslation; import net.minecraft.util.ChatComponentTranslation;
@NotableComments
public class StatHelper { public class StatHelper {
/* /*

View File

@ -1,5 +1,7 @@
package com.hbm.util; package com.hbm.util;
import com.hbm.interfaces.NotableComments;
import cpw.mods.fml.relauncher.ReflectionHelper; import cpw.mods.fml.relauncher.ReflectionHelper;
import net.minecraft.entity.Entity; import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityTracker; import net.minecraft.entity.EntityTracker;
@ -15,6 +17,7 @@ import net.minecraft.world.WorldServer;
* *
* @author hbm * @author hbm
*/ */
@NotableComments
public class TrackerUtil { public class TrackerUtil {
/** Grabs the tracker entry from the given entity */ /** Grabs the tracker entry from the given entity */

View File

@ -5,11 +5,13 @@ import java.util.List;
import java.util.Random; import java.util.Random;
import com.hbm.blocks.ModBlocks; import com.hbm.blocks.ModBlocks;
import com.hbm.interfaces.NotableComments;
import com.hbm.inventory.RecipesCommon.MetaBlock; import com.hbm.inventory.RecipesCommon.MetaBlock;
import com.hbm.world.generator.TimedGenerator.ITimedJob; import com.hbm.world.generator.TimedGenerator.ITimedJob;
import net.minecraft.world.World; import net.minecraft.world.World;
@NotableComments
public class JungleDungeon extends CellularDungeon { public class JungleDungeon extends CellularDungeon {
public boolean hasHole = false; public boolean hasHole = false;
@ -70,6 +72,7 @@ public class JungleDungeon extends CellularDungeon {
//since all the building is timed jobs, this has to be as well. timed jobs are ordered so this works! //since all the building is timed jobs, this has to be as well. timed jobs are ordered so this works!
//is it shitty coding? is it not? who knows? //is it shitty coding? is it not? who knows?
//future bob here: yes it is, go fuck yourself
} }
} }