Jump to content

[Help]Entity spawning problem


Triplitz88

Recommended Posts

Hey all,

 

I'm having a rather serious problem with spawning my entity. I've gotten it to work perfectly in SP but in MP the thing simply will not spawn.

 

Here is the relevant code:

 

package mod_DefenseGunPack;

//Credits:
//big help from: Zorn_Taov
//
//
//
//
//
//

import mod_DefenseGunPack.handlers.CraftingHandler;
import mod_DefenseGunPack.handlers.DG3x3_SpawnPacketHandler;
import mod_DefenseGunPack.client.ClientProxy;
import mod_DefenseGunPack.handlers.DG3x3_PacketHandler;
import mod_DefenseGunPack.items.DG3x3_Item;
import mod_DefenseGunPack.turrets.DG3x3_EntityLiving;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.block.material.Material;
import net.minecraft.block.Block;
import net.minecraft.block.BlockContainer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemReed;
import net.minecraft.item.ItemStack;
import net.minecraft.src.ModLoader;
import net.minecraft.tileentity.TileEntity;
import net.minecraftforge.client.MinecraftForgeClient;
import net.minecraftforge.common.ForgeHooks;
import net.minecraftforge.common.MinecraftForge;
import cpw.mods.fml.client.registry.RenderingRegistry;
import cpw.mods.fml.common.ICraftingHandler;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.Init;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.Mod.PostInit;
import cpw.mods.fml.common.Mod.PreInit;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.IConnectionHandler;
import cpw.mods.fml.common.network.IPacketHandler;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.common.registry.LanguageRegistry;
import cpw.mods.fml.common.registry.GameRegistry;

@Mod(modid = "mod_DefenseGunPack", name = "mod_DefenseGunPack", version = "0.0.1")
@NetworkMod(clientSideRequired = true, serverSideRequired = false)
public class Mod_Turrets
{
//public static final Block test = (new BlockDefenseGun3x3v1(250, mod_DefenseGunPack.EntityDefenseGun3x3v1.class))
//	.setHardness(0.5F) .setResistance(1F) .setBlockName("DefenseTurret3x3v1");

//	public static IPacketHandler packetHandler;
//
//    public static IPacketHandler packetSpawnHandler;

    public static Item DG3x3_Item;

    public void craftingRecipes()
    {
        GameRegistry.addRecipe(new ItemStack(DG3x3_Item, 1, 0), new Object[] { "##", "##", '#', Block.dirt});
    }

    @Instance("Mod_Turrets")
    public static Mod_Turrets instance;

    @SidedProxy(clientSide = "mod_DefenseGunPack.client.ClientProxy", serverSide = "mod_DefenseGunPack.CommonProxy")
    public static CommonProxy proxy;

    @PreInit
    public void preInt(FMLPreInitializationEvent event)
    {
        // stub Method
    }

    @Init
    public void load(FMLInitializationEvent event)
    {
//        packetHandler = new DG3x3_PacketHandler();
//        packetSpawnHandler = new DG3x3_SpawnPacketHandler();
//        
//        NetworkRegistry.instance().registerPacketHandler();
        
        DG3x3_Item = (new DG3x3_Item(5000-256)).setItemName("DefenseGun3x3v1")
                .setCreativeTab(CreativeTabs.tabRedstone).setIconCoord(12, 10); 
        
        craftingRecipes();
        
//        NetworkRegistry.instance().registerChannel(packetHandler, "DG3x3");
//        NetworkRegistry.instance().registerChannel(packetSpawnHandler, "DG3x3Spawn");
        
        int DG3x3id = EntityRegistry.findGlobalUniqueEntityId();
        EntityRegistry.registerGlobalEntityID(DG3x3_EntityLiving.class, "DefenseGun3x3v1", DG3x3id);
        EntityRegistry.registerModEntity(DG3x3_EntityLiving.class, "DefenseGun3x3v1",DG3x3id, this, 250, 5, false);
        
        GameRegistry.registerItem(DG3x3_Item, "DefenseGun3x3v1");
        LanguageRegistry.addName(DG3x3_Item, "DefenseGun3x3v1");
        
        ClientProxy.registerRenderInformation();
    }

    @PostInit
    public void postInit(FMLPostInitializationEvent event)
    {
        // stub Method
    }
}

 

package mod_DefenseGunPack;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.network.INetworkManager;
import net.minecraft.network.packet.Packet250CustomPayload;
import net.minecraft.world.World;
import cpw.mods.fml.common.INetworkHandler;
import cpw.mods.fml.common.network.IGuiHandler;
import cpw.mods.fml.common.network.IPacketHandler;
import cpw.mods.fml.common.network.NetworkMod;
import cpw.mods.fml.common.network.NetworkMod.NULL;
import cpw.mods.fml.common.network.NetworkMod.SidedPacketHandler;
import cpw.mods.fml.common.network.Player;
import cpw.mods.fml.common.registry.GameRegistry;
import mod_DefenseGunPack.handlers.DG3x3_PacketHandler;

public class CommonProxy 
{
    public static void registerRenderInformation()
    {
        //No rendering for servers
    }    
}

 

package mod_DefenseGunPack.client;

import cpw.mods.fml.client.registry.RenderingRegistry;
import net.minecraft.client.model.ModelBase;
import net.minecraft.src.ModLoader;
import net.minecraftforge.client.MinecraftForgeClient;
import mod_DefenseGunPack.CommonProxy;
import mod_DefenseGunPack.turrets.DG3x3_EntityLiving;
import mod_DefenseGunPack.turrets.renderers.DG3x3_Renderer;
import mod_DefenseGunPack.turrets.models.DG3x3_Model;

public class ClientProxy extends CommonProxy
{
    public static void registerRenderInformation()
    {
        MinecraftForgeClient.preloadTexture("/mod_DefenseGunPack/DefenseGun3x3v1.png");
        RenderingRegistry.registerEntityRenderingHandler(mod_DefenseGunPack.turrets.DG3x3_EntityLiving.class, new mod_DefenseGunPack.turrets.renderers.DG3x3_Renderer());
    }
}

 

package mod_DefenseGunPack.items;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

import com.google.common.io.ByteArrayDataOutput;
import com.google.common.io.ByteStreams;

import mod_DefenseGunPack.turrets.DG3x3_EntityLiving;
import net.minecraft.block.Block;
import net.minecraft.client.entity.EntityClientPlayerMP;
import net.minecraft.crash.CrashReport;
import net.minecraft.crash.CrashReportCategory;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.DataWatcher;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.item.EntityBoat;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.network.packet.Packet;
import net.minecraft.network.packet.Packet250CustomPayload;
import net.minecraft.src.ModLoader;
import net.minecraft.stats.StatList;
import net.minecraft.util.ReportedException;
import net.minecraft.world.World;
import net.minecraft.world.chunk.Chunk;
import net.minecraft.world.chunk.IChunkProvider;
import cpw.mods.fml.client.FMLClientHandler;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.network.EntitySpawnPacket;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.network.PacketDispatcher;
import cpw.mods.fml.common.network.Player;
import cpw.mods.fml.common.registry.EntityRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;



public class DG3x3_Item extends Item
{
    private int spawnID;

    public EntityPlayer PlacingPlayer;

    public DG3x3_Item(int par1)
    {
        super(par1);
    }
    
    public boolean FW_CheckPlacementLocation(World par3World, int par4, int par5, int par6, int par7)
    {
        if (!par3World.isAirBlock(par4, par5, par6))
        {
            int id = par3World.getBlockId(par4, par5, par6);

            if (id == 42 || id == 45 || id == 01 || id == 02 || id == 03)
            {
                return true;
            }
        }

        System.out.println("Placement False");
        return false;
    }

    /**
     * Callback for item usage. If the item does something special on right
     * clicking, he will have one of those. Return True if something happen and
     * false if it don't. This is for ITEMS, not BLOCKS
     */
    @Override
    public boolean onItemUse(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, World par3World, int par4, int par5, int par6, int par7, float par8, float par9, float par10)
    {
        int var11 = par3World.getBlockId(par4, par5, par6);

        if (var11 == Block.snow.blockID)
        {
            par7 = 1;
        }
        else if (var11 != Block.vine.blockID && var11 != Block.tallGrass.blockID && var11 != Block.deadBush.blockID)
        {
            if (par7 == 0)
            {
                --par5;
            }

            if (par7 == 1)
            {
                ++par5;
            }

            if (par7 == 2)
            {
                --par6;
            }

            if (par7 == 3)
            {
                ++par6;
            }

            if (par7 == 4)
            {
                --par4;
            }

            if (par7 == 5)
            {
                ++par4;
            }
        }

        if (!par2EntityPlayer.canPlayerEdit(par4, par5, par6, par7, par1ItemStack))
        {
            return false;
        }
        else if (par1ItemStack.stackSize == 0)
        {
            return false;
        }
        else
        {
            if (
                    (FW_CheckPlacementLocation(par3World, par4 - 1, par5 - 1, par6 + 1, par7) == true)
                    && (FW_CheckPlacementLocation(par3World, par4, par5 - 1, par6 + 1, par7) == true)
                    && (FW_CheckPlacementLocation(par3World, par4 + 1, par5 - 1, par6 + 1, par7) == true)
                    && (FW_CheckPlacementLocation(par3World, par4 - 1, par5 - 1, par6, par7) == true)
                    && (FW_CheckPlacementLocation(par3World, par4, par5 - 1, par6, par7) == true)
                    && (FW_CheckPlacementLocation(par3World, par4 + 1, par5 - 1, par6, par7) == true)
                    && (FW_CheckPlacementLocation(par3World, par4 - 1, par5 - 1, par6 - 1, par7) == true)
                    && (FW_CheckPlacementLocation(par3World, par4, par5 - 1, par6 - 1, par7) == true)
                    && (FW_CheckPlacementLocation(par3World, par4 + 1, par5 - 1, par6 - 1, par7) == true))
            {
                for (int i = 0; i < 3; i = i + 1)
                {
                    if (
                            (par3World.isAirBlock(par4 - 1, par5 + i, par6 + 1))
                            && (par3World.isAirBlock(par4, par5 + 1, par6 + 1))
                            && (par3World.isAirBlock(par4 + 1, par5 + i, par6 + 1))
                            && (par3World.isAirBlock(par4 - 1, par5 + i, par6))
                            && (par3World.isAirBlock(par4, par5 + 1, par6))
                            && (par3World.isAirBlock(par4 + 1, par5 + i, par6))
                            && (par3World.isAirBlock(par4 - 1, par5 + i, par6 - 1))
                            && (par3World.isAirBlock(par4, par5 + 1, par6 - 1))
                            && (par3World.isAirBlock(par4 + 1, par5 + i, par6 - 1))
                    )
                    {
                    }
                }
            }
            else
            {
                return false;
            }
        
            if(spawnTurret(par4, par5, par6, new DG3x3_EntityLiving(par3World), par3World, par2EntityPlayer))
            {
            	par1ItemStack.stackSize--;
            	return true;
            }
            par2EntityPlayer.swingItem();
            return false;
            
        }
    }

public static boolean spawnTurret(double x, double y, double z, Entity entity, World world, EntityPlayer player)
{
if(!world.isRemote)
{
	entity.setPosition(x, y, z);
	world.spawnEntityInWorld(entity);
	world.playAuxSFX(2001, (int)x, (int)y, (int)z, Block.stone.blockID);
	return true;
}
return false;
}

}

 

package mod_DefenseGunPack.turrets;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.util.List;
import java.util.Random;
import java.util.UUID;

import mod_DefenseGunPack.Mod_Turrets;
import mod_DefenseGunPack.packet.DG3x3_Packet;
import mod_DefenseGunPack.projectiles.EntityExplosiveArrow;
import mod_DefenseGunPack.targetfilters.FilterITurret;
import net.minecraft.client.entity.EntityClientPlayerMP;
import net.minecraft.command.IEntitySelector;
import net.minecraft.crash.CrashReport;
import net.minecraft.crash.CrashReportCategory;
import net.minecraft.entity.DataWatcher;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityList;
import net.minecraft.entity.EntityLiving;
import net.minecraft.entity.IRangedAttackMob;
import net.minecraft.entity.WatchableObject;
import net.minecraft.entity.ai.EntityAIArrowAttack;
import net.minecraft.entity.ai.EntityAIAttackOnCollide;
import net.minecraft.entity.ai.EntityAIHurtByTarget;
import net.minecraft.entity.ai.EntityAINearestAttackableTarget;
import net.minecraft.entity.ai.EntityAIWatchClosest;
import net.minecraft.entity.monster.EntityMob;
import net.minecraft.entity.monster.EntitySlime;
import net.minecraft.entity.monster.IMob;
import net.minecraft.entity.passive.EntityAnimal;
import net.minecraft.entity.passive.EntityVillager;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.EntityPlayerMP;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagDouble;
import net.minecraft.nbt.NBTTagFloat;
import net.minecraft.nbt.NBTTagList;
import net.minecraft.network.packet.Packet;
import net.minecraft.network.packet.Packet250CustomPayload;
import net.minecraft.server.MinecraftServer;
import net.minecraft.util.AxisAlignedBB;
import net.minecraft.util.ChunkCoordinates;
import net.minecraft.util.DamageSource;
import net.minecraft.util.ReportedException;
import net.minecraft.world.World;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.network.EntitySpawnPacket;
import cpw.mods.fml.common.network.FMLPacket;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.network.PacketDispatcher;
import cpw.mods.fml.common.network.Player;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

public class DG3x3_EntityLiving extends EntityLiving implements IInventory, IRangedAttackMob, IEntitySelector
{
    private float field_70926_e;
    private float field_70924_f;

    private EntityAIArrowAttack field_85037_d = new EntityAIArrowAttack(this, 0F, 1, 25F);
    private EntityAIAttackOnCollide field_85038_e = new EntityAIAttackOnCollide(this, EntityPlayer.class, 0.31F, false);

    private ItemStack[] DG3X3v1Contents = new ItemStack[64];
    private boolean field_70279_a;
    private double field_70276_b;
    @SideOnly(Side.CLIENT)
    private double velocityX;
    @SideOnly(Side.CLIENT)
    private double velocityY;
    @SideOnly(Side.CLIENT)
    private double velocityZ;
    private EntityPlayer entityplayer;

    private IEntitySelector ientityselector = new FilterITurret();

    public DG3x3_Packet DG3x3packet;
    public DataOutputStream outputStream;

    public DG3x3_EntityLiving(World par1World)
    {
        super(par1World);
        this.field_70279_a = true;
        this.field_70276_b = 0.07D;
        this.preventEntitySpawning = true;
        this.tasks.addTask(1, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
        this.tasks.addTask(2, this.field_85037_d);
        this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
        this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityLiving.class, 25F, 0, true, true, ientityselector));
        this.func_82164_bB();
        this.func_82162_bC();
        System.out.println("EntitySpawn 1");
    }

    public DG3x3_EntityLiving(World par1World, double par2, double par4, double par6, EntityPlayer player)
    {
        super(par1World);
        double xpos2 = par2 + 0.5;
        double zpos2 = par6 + 0.5;
        this.setPosition(xpos2, par4, zpos2);
        this.motionX = 0.0D;
        this.motionY = 0.0D;
        this.motionZ = 0.0D;
        this.prevPosX = xpos2;
        this.prevPosY = par4;
        this.prevPosZ = par6;
        this.height = 1.5F;
        this.boundingBox.setBounds(xpos2 - 1.5, par4 - 0, zpos2 - 1.5, xpos2 + 1.5, par4 + 3, zpos2 + 1.5);
        this.entityplayer = player;
        this.tasks.addTask(1, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
        this.tasks.addTask(2, this.field_85037_d);
        this.targetTasks.addTask(1, new EntityAIHurtByTarget(this, false));
        this.targetTasks.addTask(2, new EntityAINearestAttackableTarget(this, EntityLiving.class, 25F, 0, true, true, ientityselector));
        System.out.println("EntitySpawn 2");
    }

    @Override
    public void setAttackTarget(EntityLiving par1EntityLiving)
    {
        super.setAttackTarget(par1EntityLiving);
    }

    @SideOnly(Side.CLIENT)
    public float getInterestedAngle(float par1)
    {
        return (this.field_70924_f + (this.field_70926_e - this.field_70924_f) * par1) * 0.15F * (float)Math.PI;
    }

    /**
     * random number generator for instance. Used in random item stack selection.
     */
    private Random DG3X3v1Random = new Random();

    /**
     * the movespeed used for the new AI system
     */
    @Override
    public float getAIMoveSpeed()
    {
        return 0;
    }

    /**
     * Returns the number of slots in the inventory.
     */
    @Override
    public int getSizeInventory()
    {
        return 1;
    }

    public boolean isAIEnabled()
    {
        return true;
    }

    public boolean attackEntityAsMob(Entity par1Entity)
    {
        if (super.attackEntityAsMob(par1Entity))
        {
            return true;
        }
        else
        {
            return false;
        }
    }

    /**
     * Returns the amount of damage a mob should deal.
     */
    public int getAttackStrength(Entity par1Entity)
    {
        return 999;
    }

    protected boolean canTriggerWalking()
    {
        return false;
    }

    protected void entityInit()
    {
        super.entityInit();
        this.dataWatcher.addObject(13, new Byte((byte)0));
        this.dataWatcher.addObject(16, Byte.valueOf((byte)0));
        this.dataWatcher.addObject(17, Integer.valueOf(0));
        this.dataWatcher.addObject(18, Integer.valueOf(0));
        this.dataWatcher.addObject(19, Integer.valueOf(0));
        this.dataWatcher.addObject(20, Byte.valueOf((byte)0));
    }

    /**
     * Returns a boundingBox used to collide the entity with other entities and blocks. This enables the entity to be
     * pushable on contact, like boats or minecarts.
     */
    @Override
    public AxisAlignedBB getCollisionBox(Entity par1Entity)
    {
        return par1Entity.boundingBox;
    }

    /**
     * returns the bounding box for this entity
     */
    @Override
    public AxisAlignedBB getBoundingBox()
    {
        return this.boundingBox;
    }

    /**
     * Returns true if this entity should push and be pushed by other entities when colliding.
     */
    @Override
    public boolean canBePushed()
    {
        return false;
    }

    /**
     * Called when the entity is attacked.
     */
    public boolean attackEntityFrom(DamageSource par1DamageSource, int par2)
    {
        if (this.func_85032_ar())
        {
            return false;
        }
        else if (!this.worldObj.isRemote && !this.isDead)
        {
            this.setForwardDirection(-this.getForwardDirection());
            this.setTimeSinceHit(10);
            this.setDamageTaken(this.getDamageTaken() + par2 * 10);
            this.setBeenAttacked();

            if (par1DamageSource.getEntity() instanceof EntityPlayer && ((EntityPlayer)par1DamageSource.getEntity()).capabilities.isCreativeMode)
            {
                this.setDamageTaken(100);
            }

            if (this.getDamageTaken() > 40)
            {
                this.dropItemWithOffset(Mod_Turrets.DG3x3_Item.shiftedIndex, 1, 0.0F);
                this.setDead();
            }

            return true;
        }
        else
        {
            return true;
        }
    }

    @SideOnly(Side.CLIENT)

    /**
     * Setups the entity to do the hurt animation. Only used by packets in multiplayer.
     */
    public void performHurtAnimation()
    {
        this.setForwardDirection(-this.getForwardDirection());
        this.setTimeSinceHit(10);
        this.setDamageTaken(this.getDamageTaken() * 11);
    }

    /**
     * Returns true if other Entities should be prevented from moving through this Entity.
     */
    public boolean canBeCollidedWith()
    {
        return !this.isDead;
    }

    @SideOnly(Side.CLIENT)

    /**
     * Sets the velocity to the args. Args: x, y, z
     */
    public void setVelocity(double par1, double par3, double par5)
    {
        this.velocityX = this.motionX = par1;
        this.velocityY = this.motionY = par3;
        this.velocityZ = this.motionZ = par5;
    }

    protected void func_82164_bB()
    {
        super.func_82164_bB();
        this.setCurrentItemOrArmor(0, new ItemStack(Item.bow));
    }

    /**
     * (abstract) Protected helper method to write subclass entity data to NBT.
     */
    @Override
    public void writeEntityToNBT(NBTTagCompound par1NBTTagCompound)
    {
        super.writeEntityToNBT(par1NBTTagCompound);

        if (getSizeInventory() > 0)
        {
            NBTTagList var2 = new NBTTagList();

            for (int var3 = 0; var3 < this.getSizeInventory(); ++var3)
            {
                if (this.DG3X3v1Contents[var3] != null)
                {
                    NBTTagCompound var4 = new NBTTagCompound();
                    var4.setByte("Slot", (byte)var3);
                    this.DG3X3v1Contents[var3].writeToNBT(var4);
                    var2.appendTag(var4);
                }
            }

            par1NBTTagCompound.setTag("Items", var2);
        }
    }

    @Override
    public void readEntityFromNBT(NBTTagCompound par1NBTTagCompound)
    {
        super.readEntityFromNBT(par1NBTTagCompound);

        if (getSizeInventory() > 0)
        {
            NBTTagList var2 = par1NBTTagCompound.getTagList("Items");
            this.DG3X3v1Contents = new ItemStack[this.getSizeInventory()];

            for (int var3 = 0; var3 < var2.tagCount(); ++var3)
            {
                NBTTagCompound var4 = (NBTTagCompound)var2.tagAt(var3);
                int var5 = var4.getByte("Slot") & 255;

                if (var5 >= 0 && var5 < this.DG3X3v1Contents.length)
                {
                    this.DG3X3v1Contents[var5] = ItemStack.loadItemStackFromNBT(var4);
                }
            }
        }
    }

    protected boolean canDespawn()
    {
        return false;
    }

    /**
     * Called when a player interacts with a mob. e.g. gets milk from a cow, gets into the saddle on a pig.
     */
    public boolean interact(EntityPlayer par1EntityPlayer)
    {
        if (getSizeInventory() > 0)
        {
            if (!this.worldObj.isRemote)
            {
                par1EntityPlayer.displayGUIChest(this);
            }
        }

        return true;
    }

    /**
     * Sets the damage taken from the last hit.
     */
    public void setDamageTaken(int par1)
    {
        this.dataWatcher.updateObject(19, Integer.valueOf(par1));
    }

    @SideOnly(Side.CLIENT)
    public float getShadowSize()
    {
        return 0.0F;
    }

    /**
     * Gets the damage taken from the last hit.
     */
    public int getDamageTaken()
    {
        return this.dataWatcher.getWatchableObjectInt(19);
    }

    /**
     * Sets the time to count down from since the last time entity was hit.
     */
    public void setTimeSinceHit(int par1)
    {
        this.dataWatcher.updateObject(17, Integer.valueOf(par1));
    }

    /**
     * Gets the time since the last hit.
     */
    public int getTimeSinceHit()
    {
        return this.dataWatcher.getWatchableObjectInt(17);
    }

    /**
     * Sets the forward direction of the entity.
     */
    public void setForwardDirection(int par1)
    {
        this.dataWatcher.updateObject(18, Integer.valueOf(par1));
    }

    /**
     * Gets the forward direction of the entity.
     */
    public int getForwardDirection()
    {
        return this.dataWatcher.getWatchableObjectInt(18);
    }

    /**
     * Returns the stack in slot i
     */
    @Override
    public ItemStack getStackInSlot(int par1)
    {
        return this.DG3X3v1Contents[par1];
    }

    /**
     * Removes from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a
     * new stack.
     */
    @Override
    public ItemStack decrStackSize(int par1, int par2)
    {
        if (this.DG3X3v1Contents[par1] != null)
        {
            ItemStack var3;

            if (this.DG3X3v1Contents[par1].stackSize <= par2)
            {
                var3 = this.DG3X3v1Contents[par1];
                this.DG3X3v1Contents[par1] = null;
                this.onInventoryChanged();
                return var3;
            }
            else
            {
                var3 = this.DG3X3v1Contents[par1].splitStack(par2);

                if (this.DG3X3v1Contents[par1].stackSize == 0)
                {
                    this.DG3X3v1Contents[par1] = null;
                }

                this.onInventoryChanged();
                return var3;
            }
        }
        else
        {
            return null;
        }
    }

    /**
     * When some containers are closed they call this on each slot, then drop whatever it returns as an EntityItem -
     * like when you close a workbench GUI.
     */
    @Override
    public ItemStack getStackInSlotOnClosing(int par1)
    {
        if (this.DG3X3v1Contents[par1] != null)
        {
            ItemStack var2 = this.DG3X3v1Contents[par1];
            this.DG3X3v1Contents[par1] = null;
            return var2;
        }
        else
        {
            return null;
        }
    }

    /**
     * Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).
     */
    @Override
    public void setInventorySlotContents(int par1, ItemStack par2ItemStack)
    {
        this.DG3X3v1Contents[par1] = par2ItemStack;

        if (par2ItemStack != null && par2ItemStack.stackSize > this.getInventoryStackLimit())
        {
            par2ItemStack.stackSize = this.getInventoryStackLimit();
        }

        this.onInventoryChanged();
    }

    public int getRandomStackFromInventory()
    {
        int var1 = -1;
        int var2 = 1;

        for (int var3 = 0; var3 < this.DG3X3v1Contents.length; ++var3)
        {
            if (this.DG3X3v1Contents[var3] != null && this.DG3X3v1Random.nextInt(var2++) == 0)
            {
                var1 = var3;
            }
        }

        return var1;
    }

    public int func_70360_a(ItemStack par1ItemStack)
    {
        for (int var2 = 0; var2 < this.DG3X3v1Contents.length; ++var2)
        {
            if (this.DG3X3v1Contents[var2] == null || this.DG3X3v1Contents[var2].itemID == 0)
            {
                this.DG3X3v1Contents[var2] = par1ItemStack;
                return var2;
            }
        }

        return -1;
    }

    /**
     * Returns the name of the inventory.
     */
    @Override
    public String getInvName()
    {
        return "container.DefenseGun3x3v1"; //$NON-NLS-1$
    }

    @Override
    public int getInventoryStackLimit()
    {
        // TODO Auto-generated method stub
        return 64;
    }

    @Override
    public void onInventoryChanged()
    {
        // TODO Auto-generated method stub
    }

    /**
     * Do not make give this method the name canInteractWith because it clashes with Container
     */
    @Override
    public boolean isUseableByPlayer(EntityPlayer par1EntityPlayer)
    {
        return true;
    }

    @Override
    public void openChest()
    {
        // TODO Auto-generated method stub
    }

    @Override
    public void closeChest()
    {
        // TODO Auto-generated method stub
    }

    @Override
    public int getMaxHealth()
    {
        return 30;
    }

    @Override
    public void onLivingUpdate()
    {
        this.posX = this.prevPosX;
        this.posY = this.prevPosY;
        this.posZ = this.prevPosZ;
        super.onLivingUpdate();
    }

    public void attackEntityWithRangedAttack(EntityLiving par1EntityLiving)
    {
        EntityExplosiveArrow var2 = new EntityExplosiveArrow(this.worldObj, this, par1EntityLiving, 1.6F, 12.0F);
        var2.setDamage(5);
        var2.setKnockbackStrength(3);
        this.func_85030_a("random.bow", 1.0F, 1.0F / (this.getRNG().nextFloat() * 0.4F + 0.8F));
        this.worldObj.spawnEntityInWorld(var2);
    }

    public boolean FW_CheckPlacementLocation(World par3World, int par4, int par5, int par6, int par7)
    {
        if (!par3World.isAirBlock(par4, par5, par6))
        {
            int id = par3World.getBlockId(par4, par5, par6);

            if (id == 42 || id == 45 || id == 01 || id == 02 || id == 03)
            {
                return true;
            }
        }

        return false;
    }

    public void onUpdate()
    {
        super.onUpdate();
        this.posX = this.prevPosX;
        this.posY = this.prevPosY;
        this.posZ = this.prevPosZ;
        this.field_70924_f = this.field_70926_e;

        if (this.func_70922_bv())
        {
            this.field_70926_e += (1.0F - this.field_70926_e) * 0.4F;
        }
        else
        {
            this.field_70926_e += (0.0F - this.field_70926_e) * 0.4F;
        }

        for (int i = -1; i < 2; i = i + 1)
        {
            for (int j = -1; j < 2; j = j + 1)
            {
                if (!(FW_CheckPlacementLocation(this.worldObj, (int)this.posX + i, (int)posY - 1, (int)this.posZ + j, 0)))
                {
                    this.kill();
                }
            }
        }
    }

    public boolean func_70922_bv()
    {
        return this.dataWatcher.getWatchableObjectByte(20) == 1;
    }

    public void func_70918_i(boolean par1)
    {
        byte var2 = this.dataWatcher.getWatchableObjectByte(20);

        if (par1)
        {
            this.dataWatcher.updateObject(20, Byte.valueOf((byte)1));
        }
        else
        {
            this.dataWatcher.updateObject(20, Byte.valueOf((byte)0));
        }
    }

    public void onKillEntity(EntityLiving par1EntityLiving)
    {
        super.onKillEntity(par1EntityLiving);

        if (this.worldObj.difficultySetting >= 2 && par1EntityLiving instanceof EntityVillager)
        {
            if (this.worldObj.difficultySetting == 2 && this.rand.nextBoolean())
            {
                return;
            }

            this.dataWatcher.updateObject(20, Byte.valueOf((byte)0));
            this.worldObj.playAuxSFXAtEntity((EntityPlayer)null, 1016, (int)this.posX, (int)this.posY, (int)this.posZ, 0);
        }
    }

    @Override
    public boolean isEntityApplicable(Entity par1Entity)
    {
        if (par1Entity instanceof IMob)
        {
            return par1Entity instanceof IMob;
        }
        else if (par1Entity instanceof EntityLiving && !(par1Entity instanceof EntityPlayer) && !(par1Entity instanceof EntityVillager) && !(par1Entity instanceof EntityAnimal))
        {
            return par1Entity instanceof EntityLiving;
        }
        else if (par1Entity instanceof EntitySlime)
        {
            return par1Entity instanceof EntitySlime;
        }
        else
        {
            return false;
        }
    }
}

 

Can anyone help me figure out why this is not working in MP?

 

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • When I start the modpack in the Minecraft launcher there is a very fast loading of the green bar and then the launcher closes and nothing appears, here is the log   [30May2024 20:32:38.114] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, GrimmWolfXxX, --version, forge-43.3.13, --gameDir, G:\MINECRAFT MODS\CurseForge\Instances\MedievalTech, --assetsDir, G:\MINECRAFT MODS\CurseForge\Install\assets, --assetIndex, 1.19, --uuid, a82398839c5942c98568c89d20911ded, --accessToken, ????????, --clientId, Y2Q2ZDhmMjktOGQwMS00N2MxLThmYzYtNWYzMTU1YThlZjI1, --xuid, 2535458029473870, --userType, msa, --versionType, release, --width, 1024, --height, 768, --launchTarget, forgeclient, --fml.forgeVersion, 43.3.13, --fml.mcVersion, 1.19.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20220805.130853] [30May2024 20:32:38.116] [main/INFO] [cpw.mods.modlauncher.Launcher/MODLAUNCHER]: ModLauncher 10.0.8+10.0.8+main.0ef7e830 starting: java version 17.0.8 by Microsoft; OS Windows 10 arch amd64 version 10.0 [30May2024 20:32:39.200] [main/INFO] [com.teampotato.redirector.Redirector/]: Redirector CoreMod initialized successfully! [30May2024 20:32:39.219] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=union:/G:/MINECRAFT%20MODS/CurseForge/Install/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar%2397!/ Service=ModLauncher Env=CLIENT [30May2024 20:32:39.642] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file G:\MINECRAFT MODS\CurseForge\Install\libraries\net\minecraftforge\fmlcore\1.19.2-43.3.13\fmlcore-1.19.2-43.3.13.jar is missing mods.toml file [30May2024 20:32:39.643] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file G:\MINECRAFT MODS\CurseForge\Install\libraries\net\minecraftforge\javafmllanguage\1.19.2-43.3.13\javafmllanguage-1.19.2-43.3.13.jar is missing mods.toml file [30May2024 20:32:39.643] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file G:\MINECRAFT MODS\CurseForge\Install\libraries\net\minecraftforge\lowcodelanguage\1.19.2-43.3.13\lowcodelanguage-1.19.2-43.3.13.jar is missing mods.toml file [30May2024 20:32:39.644] [main/WARN] [net.minecraftforge.fml.loading.moddiscovery.ModFileParser/LOADING]: Mod file G:\MINECRAFT MODS\CurseForge\Install\libraries\net\minecraftforge\mclanguage\1.19.2-43.3.13\mclanguage-1.19.2-43.3.13.jar is missing mods.toml file [30May2024 20:32:39.784] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select two dependency jars from JarJar which have the same identification: Mod File:  and Mod File: . Using Mod File: [30May2024 20:32:39.785] [main/WARN] [net.minecraftforge.jarjar.selection.JarSelector/]: Attempted to select a dependency jar for JarJar which was passed in as source: curios. Using Mod File: G:\MINECRAFT MODS\CurseForge\Instances\MedievalTech\mods\curios-forge-1.19.2-5.1.6.2.jar [30May2024 20:32:39.785] [main/INFO] [net.minecraftforge.fml.loading.moddiscovery.JarInJarDependencyLocator/]: Found 21 dependencies adding them to mods collection [30May2024 20:32:42.451] [main/INFO] [mixin/]: Compatibility level set to JAVA_17 [30May2024 20:32:42.483] [main/ERROR] [mixin/]: Mixin config epicsamurai.mixins.json does not specify "minVersion" property [30May2024 20:32:42.532] [main/ERROR] [mixin/]: Mixin config dynamiclightsreforged.mixins.json does not specify "minVersion" property [30May2024 20:32:42.556] [main/ERROR] [mixin/]: Mixin config radon.mixins.json does not specify "minVersion" property [30May2024 20:32:42.624] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [tictim.paraglider.MixinConnector] [30May2024 20:32:42.625] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [com.sonicether.soundphysics.MixinConnector] [30May2024 20:32:42.625] [main/INFO] [mixin/]: Successfully loaded Mixin Connector [ca.spottedleaf.starlight.mixin.MixinConnector] [30May2024 20:32:42.627] [main/INFO] [cpw.mods.modlauncher.LaunchServiceHandler/MODLAUNCHER]: Launching target 'forgeclient' with arguments [--version, forge-43.3.13, --gameDir, G:\MINECRAFT MODS\CurseForge\Instances\MedievalTech, --assetsDir, G:\MINECRAFT MODS\CurseForge\Install\assets, --uuid, a82398839c5942c98568c89d20911ded, --username, GrimmWolfXxX, --assetIndex, 1.19, --accessToken, ????????, --clientId, Y2Q2ZDhmMjktOGQwMS00N2MxLThmYzYtNWYzMTU1YThlZjI1, --xuid, 2535458029473870, --userType, msa, --versionType, release, --width, 1024, --height, 768] [30May2024 20:32:42.661] [main/WARN] [ModernFixConfig/]: ModelDataManager bugfixes have been disabled to prevent broken rendering with Rubidium installed. Please migrate to Embeddium. [30May2024 20:32:42.662] [main/INFO] [ModernFix/]: Loaded configuration file for ModernFix 5.17.0+mc1.19.2: 84 options available, 2 override(s) found [30May2024 20:32:42.662] [main/WARN] [ModernFix/]: Option 'mixin.bugfix.model_data_manager_cme' overriden (by mods [rubidium]) to 'false' [30May2024 20:32:42.662] [main/WARN] [ModernFix/]: Option 'mixin.bugfix.item_cache_flag' overriden (by mods [radium]) to 'false' [30May2024 20:32:42.662] [main/INFO] [ModernFix/]: Applying Nashorn fix [30May2024 20:32:42.667] [main/INFO] [ModernFix/]: Applied Forge config corruption patch [30May2024 20:32:42.676] [main/WARN] [mixin/]: Reference map 'morevillagers-forge-forge-refmap.json' for morevillagers.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.679] [main/WARN] [mixin/]: Reference map 'yungsextras.refmap.json' for yungsextras.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.680] [main/WARN] [mixin/]: Reference map 'yungsextras.refmap.json' for yungsextras_forge.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.681] [main/WARN] [mixin/]: Reference map 'brrp-forge-forge-refmap.json' for brrp-forge.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.684] [main/WARN] [mixin/]: Reference map 'nitrogen_internals.refmap.json' for nitrogen_internals.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.692] [main/ERROR] [RadiumConfig/]: Option entity.collisions.fluid for dependency 'entity.collisions.fluid depends on chunk=true' not found. Skipping. [30May2024 20:32:42.692] [main/ERROR] [RadiumConfig/]: Option entity.collisions.fluid for dependency 'entity.collisions.fluid depends on chunk.block_counting=true' not found. Skipping. [30May2024 20:32:42.693] [main/INFO] [Radium/]: Loaded configuration file for Radium: 96 options available, 0 override(s) found [30May2024 20:32:42.696] [main/WARN] [mixin/]: Reference map 'arclight.mixins.refmap.json' for epicsamurai.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.699] [main/WARN] [mixin/]: Reference map 'untamedwilds.refmap.json' for untamedwilds.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.700] [main/WARN] [mixin/]: Reference map 'jeitweaker.refmap.json' for jeitweaker.forge.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.701] [main/WARN] [mixin/]: Reference map 'jeitweaker.refmap.json' for jeitweaker.common.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.703] [main/WARN] [mixin/]: Reference map 'antiqueatlas-forge-refmap.json' for antiqueatlas.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.706] [main/WARN] [mixin/]: Reference map '${refmap_target}refmap.json' for corgilib.forge.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.718] [main/WARN] [mixin/]: Reference map 'tlc.refmap.json' for tlc.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.722] [main/WARN] [mixin/]: Reference map 'insanelib.refmap.json' for insanelib.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.726] [main/WARN] [mixin/]: Reference map 'Bakery-forge-refmap.json' for bakery.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.744] [main/WARN] [mixin/]: Reference map 'xlpackets.refmap.json' for xlpackets.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.752] [main/INFO] [com.teampotato.redirector.Redirector/]: Redirecting com/llamalad7/mixinextras/service/MixinExtrasVersion [30May2024 20:32:42.778] [main/WARN] [mixin/]: Reference map 'mes-forge-refmap.json' for mes-forge.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.785] [main/INFO] [com.teampotato.redirector.Redirector/]: Redirecting malte0811/ferritecore/mixin/config/FerriteMixinConfig$LithiumSupportState [30May2024 20:32:42.796] [main/INFO] [com.abdelaziz.saturn.common.Saturn/]: Loaded Saturn config file with 4 configurable options [30May2024 20:32:42.808] [main/INFO] [Rubidium/]: Loaded configuration file for Rubidium: 30 options available, 0 override(s) found [30May2024 20:32:42.813] [main/WARN] [mixin/]: Reference map 'labels-common-refmap.json' for labels-common.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.813] [main/WARN] [mixin/]: Reference map 'labels-forge-refmap.json' for labels.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.815] [main/WARN] [mixin/]: Reference map 'lmft-forge-refmap.json' for lmft.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.817] [main/WARN] [mixin/]: Reference map 'mysticaloaktree-common-refmap.json' for mysticaloaktree-common.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.818] [main/WARN] [mixin/]: Reference map 'mysticaloaktree-forge-refmap.json' for mysticaloaktree.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.826] [main/WARN] [mixin/]: Reference map 'thirst.refmap.json' for villagercomfort.mixin.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.830] [main/INFO] [com.teampotato.redirector.Redirector/]: Redirecting com/illusivesoulworks/polymorph/common/integration/PolymorphIntegrations$Mod [30May2024 20:32:42.831] [main/INFO] [com.teampotato.redirector.Redirector/]: Redirecting com/illusivesoulworks/polymorph/common/integration/PolymorphIntegrations$Loader [30May2024 20:32:42.849] [main/WARN] [mixin/]: Reference map 'naturalist-forge-forge-refmap.json' for naturalist.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.852] [main/INFO] [fpsreducer/]: OptiFine was NOT detected. [30May2024 20:32:42.853] [main/INFO] [fpsreducer/]: OptiFabric was NOT detected. [30May2024 20:32:42.854] [main/WARN] [mixin/]: Reference map 'dummmmmmy-forge-refmap.json' for dummmmmmy.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.858] [main/WARN] [mixin/]: Reference map 'VampirismCoveredArmor.refmap.json' for vampirismcoveredarmor.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.862] [main/INFO] [Sodium Extra Config/]: Loaded configuration file for Sodium Extra: 28 options available, 0 override(s) found [30May2024 20:32:42.864] [main/WARN] [mixin/]: Reference map 'smallships-forge-refmap.json' for smallships.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.866] [main/WARN] [mixin/]: Reference map 'limitedchunks.refmap.json' for limitedchunks.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.875] [main/WARN] [mixin/]: Reference map 'mvs-forge-refmap.json' for mvs-forge.mixins.json could not be read. If this is a development environment you can ignore this message [30May2024 20:32:42.979] [main/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching IForgeItemStack#getEnchantmentLevel [30May2024 20:32:42.982] [main/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching IForgeItemStack#getEnchantmentLevel [30May2024 20:32:43.092] [main/WARN] [mixin/]: Error loading class: mezz/modnametooltip/TooltipEventHandler (java.lang.ClassNotFoundException: mezz.modnametooltip.TooltipEventHandler) [30May2024 20:32:43.093] [main/WARN] [mixin/]: Error loading class: me/shedaniel/rei/impl/client/ClientHelperImpl (java.lang.ClassNotFoundException: me.shedaniel.rei.impl.client.ClientHelperImpl) [30May2024 20:32:43.142] [main/WARN] [mixin/]: Error loading class: net/minecraft/client/renderer/item/ItemProperties$static$1 (java.lang.ClassNotFoundException: net.minecraft.client.renderer.item.ItemProperties$static$1) [30May2024 20:32:43.143] [main/WARN] [mixin/]: @Mixin target net.minecraft.client.renderer.item.ItemProperties$static$1 was not found infernal-expansion.mixins.json:client.MixinItemProperties [30May2024 20:32:43.150] [main/WARN] [mixin/]: Error loading class: com/simibubi/create/content/contraptions/components/fan/AirCurrent (java.lang.ClassNotFoundException: com.simibubi.create.content.contraptions.components.fan.AirCurrent) [30May2024 20:32:43.300] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 2 calls to Enchantment#getMaxLevel() in net/minecraft/world/inventory/AnvilMenu [30May2024 20:32:43.307] [main/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching IForgeItemStack#getEnchantmentLevel [30May2024 20:32:43.308] [main/INFO] [net.minecraftforge.coremod.CoreMod.placebo/COREMODLOG]: Patching IForgeItemStack#getEnchantmentLevel [30May2024 20:32:43.312] [main/WARN] [mixin/]: Error loading class: com/hollingsworth/arsnouveau/common/items/SpellCrossbow (java.lang.ClassNotFoundException: com.hollingsworth.arsnouveau.common.items.SpellCrossbow) [30May2024 20:32:43.470] [main/INFO] [com.teampotato.redirector.Redirector/]: Redirecting link/infra/indium/renderer/aocalc/AoConfig [30May2024 20:32:43.634] [main/WARN] [mixin/]: Error loading class: com/mrcrayfish/guns/client/handler/RecoilHandler (java.lang.ClassNotFoundException: com.mrcrayfish.guns.client.handler.RecoilHandler) [30May2024 20:32:43.635] [main/WARN] [mixin/]: Error loading class: dev/tr7zw/skinlayers/render/CustomizableModelPart (java.lang.ClassNotFoundException: dev.tr7zw.skinlayers.render.CustomizableModelPart) [30May2024 20:32:43.637] [main/WARN] [mixin/]: Error loading class: net/optifine/shaders/ShadersRender (java.lang.ClassNotFoundException: net.optifine.shaders.ShadersRender) [30May2024 20:32:43.637] [main/WARN] [mixin/]: @Mixin target net.optifine.shaders.ShadersRender was not found shouldersurfing.forge.mixins.json:MixinShadersRender [30May2024 20:32:43.709] [main/WARN] [mixin/]: Error loading class: com/min01/archaeology/item/BrushItem (java.lang.ClassNotFoundException: com.min01.archaeology.item.BrushItem) [30May2024 20:32:43.709] [main/WARN] [mixin/]: @Mixin target com.min01.archaeology.item.BrushItem was not found cataclysm.mixins.json:BrushItemMixin [30May2024 20:32:43.712] [main/WARN] [mixin/]: Error loading class: shadows/apotheosis/ench/table/ApothEnchantContainer (java.lang.ClassNotFoundException: shadows.apotheosis.ench.table.ApothEnchantContainer) [30May2024 20:32:43.712] [main/WARN] [mixin/]: @Mixin target shadows.apotheosis.ench.table.ApothEnchantContainer was not found origins_classes.mixins.json:common.apotheosis.ApotheosisEnchantmentMenuMixin [30May2024 20:32:43.714] [main/WARN] [mixin/]: Error loading class: se/mickelus/tetra/blocks/workbench/WorkbenchTile (java.lang.ClassNotFoundException: se.mickelus.tetra.blocks.workbench.WorkbenchTile) [30May2024 20:32:43.714] [main/WARN] [mixin/]: @Mixin target se.mickelus.tetra.blocks.workbench.WorkbenchTile was not found origins_classes.mixins.json:common.tetra.WorkbenchTileMixin [30May2024 20:32:43.749] [main/WARN] [mixin/]: Error loading class: dev/ftb/mods/ftbchunks/data/ClaimedChunkManager (java.lang.ClassNotFoundException: dev.ftb.mods.ftbchunks.data.ClaimedChunkManager) [30May2024 20:32:43.749] [main/WARN] [mixin/]: @Mixin target dev.ftb.mods.ftbchunks.data.ClaimedChunkManager was not found doespotatotick.mixins.json:ClaimedChunkManagerAccessor [30May2024 20:32:43.777] [main/INFO] [auudio/mixin/AuudioMixinPlugin/]: APPLYING MIXIN: de.keksuccino.auudio.mixin.client.MixinSoundBufferLibrary | TO TARGET: net.minecraft.client.sounds.SoundBufferLibrary [30May2024 20:32:43.777] [main/INFO] [auudio/mixin/AuudioMixinPlugin/]: APPLYING MIXIN: de.keksuccino.auudio.mixin.client.MixinSoundEngine | TO TARGET: net.minecraft.client.sounds.SoundEngine [30May2024 20:32:43.806] [main/WARN] [mixin/]: Error loading class: com/izofar/takesapillage/entity/Archer (java.lang.ClassNotFoundException: com.izofar.takesapillage.entity.Archer) [30May2024 20:32:43.806] [main/WARN] [mixin/]: @Mixin target com.izofar.takesapillage.entity.Archer was not found difficultraids.mixin.json:compat.ArcherMixin [30May2024 20:32:43.806] [main/WARN] [mixin/]: Error loading class: cn/leolezury/leosillagers/entity/Clownager (java.lang.ClassNotFoundException: cn.leolezury.leosillagers.entity.Clownager) [30May2024 20:32:43.807] [main/WARN] [mixin/]: @Mixin target cn.leolezury.leosillagers.entity.Clownager was not found difficultraids.mixin.json:compat.ClownagerMixin [30May2024 20:32:43.810] [main/WARN] [mixin/]: Error loading class: baguchan/hunterillager/entity/HunterIllagerEntity (java.lang.ClassNotFoundException: baguchan.hunterillager.entity.HunterIllagerEntity) [30May2024 20:32:43.810] [main/WARN] [mixin/]: @Mixin target baguchan.hunterillager.entity.HunterIllagerEntity was not found difficultraids.mixin.json:compat.HunterIllagerMixin [30May2024 20:32:43.810] [main/WARN] [mixin/]: Error loading class: com/izofar/takesapillage/entity/Legioner (java.lang.ClassNotFoundException: com.izofar.takesapillage.entity.Legioner) [30May2024 20:32:43.810] [main/WARN] [mixin/]: @Mixin target com.izofar.takesapillage.entity.Legioner was not found difficultraids.mixin.json:compat.LegionerMixin [30May2024 20:32:43.811] [main/WARN] [mixin/]: Error loading class: cn/leolezury/leosillagers/entity/LightningCaller (java.lang.ClassNotFoundException: cn.leolezury.leosillagers.entity.LightningCaller) [30May2024 20:32:43.811] [main/WARN] [mixin/]: @Mixin target cn.leolezury.leosillagers.entity.LightningCaller was not found difficultraids.mixin.json:compat.LightningCallerMixin [30May2024 20:32:43.824] [main/WARN] [mixin/]: Error loading class: com/infamous/dungeons_mobs/entities/illagers/MountaineerEntity (java.lang.ClassNotFoundException: com.infamous.dungeons_mobs.entities.illagers.MountaineerEntity) [30May2024 20:32:43.824] [main/WARN] [mixin/]: @Mixin target com.infamous.dungeons_mobs.entities.illagers.MountaineerEntity was not found difficultraids.mixin.json:compat.MountaineerMixin [30May2024 20:32:43.825] [main/WARN] [mixin/]: Error loading class: com/infamous/dungeons_mobs/entities/redstone/RedstoneGolemEntity (java.lang.ClassNotFoundException: com.infamous.dungeons_mobs.entities.redstone.RedstoneGolemEntity) [30May2024 20:32:43.825] [main/WARN] [mixin/]: @Mixin target com.infamous.dungeons_mobs.entities.redstone.RedstoneGolemEntity was not found difficultraids.mixin.json:compat.RedstoneGolemMixin [30May2024 20:32:43.826] [main/WARN] [mixin/]: Error loading class: com/infamous/dungeons_mobs/entities/illagers/RoyalGuardEntity (java.lang.ClassNotFoundException: com.infamous.dungeons_mobs.entities.illagers.RoyalGuardEntity) [30May2024 20:32:43.826] [main/WARN] [mixin/]: @Mixin target com.infamous.dungeons_mobs.entities.illagers.RoyalGuardEntity was not found difficultraids.mixin.json:compat.RoyalGuardMixin [30May2024 20:32:43.826] [main/WARN] [mixin/]: Error loading class: com/izofar/takesapillage/entity/Skirmisher (java.lang.ClassNotFoundException: com.izofar.takesapillage.entity.Skirmisher) [30May2024 20:32:43.826] [main/WARN] [mixin/]: @Mixin target com.izofar.takesapillage.entity.Skirmisher was not found difficultraids.mixin.json:compat.SkirmisherMixin [30May2024 20:32:43.828] [main/WARN] [mixin/]: Error loading class: cn/leolezury/leosillagers/entity/VindicatorWithShield (java.lang.ClassNotFoundException: cn.leolezury.leosillagers.entity.VindicatorWithShield) [30May2024 20:32:43.829] [main/WARN] [mixin/]: @Mixin target cn.leolezury.leosillagers.entity.VindicatorWithShield was not found difficultraids.mixin.json:compat.VindicatorWithShieldMixin [30May2024 20:32:43.849] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching FishingHook#catchingFish [30May2024 20:32:43.927] [main/WARN] [mixin/]: Error loading class: net/minecraft/resources/RegistryDataLoader (java.lang.ClassNotFoundException: net.minecraft.resources.RegistryDataLoader) [30May2024 20:32:43.927] [main/WARN] [mixin/]: @Mixin target net.minecraft.resources.RegistryDataLoader was not found zeta.mixins.json:RegistryDataLoaderMixin [30May2024 20:32:43.971] [main/INFO] [fpsreducer/]: bre2el.fpsreducer.mixin.RenderSystemMixin will be applied. [30May2024 20:32:43.972] [main/INFO] [fpsreducer/]: bre2el.fpsreducer.mixin.WindowMixin will NOT be applied because OptiFine was NOT detected. [30May2024 20:32:44.036] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#getMaxLevel() in net/minecraft/world/entity/npc/VillagerTrades$EnchantBookForEmeralds [30May2024 20:32:44.036] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#isTreasureOnly() in net/minecraft/world/entity/npc/VillagerTrades$EnchantBookForEmeralds [30May2024 20:32:44.036] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#isTradeable() in net/minecraft/world/entity/npc/VillagerTrades$EnchantBookForEmeralds [30May2024 20:32:44.040] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 2 calls to Enchantment#getMaxLevel() in net/minecraft/world/item/EnchantedBookItem [30May2024 20:32:44.044] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#getMaxLevel() in net/minecraft/world/level/storage/loot/functions/EnchantRandomlyFunction [30May2024 20:32:44.044] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Replaced 1 calls to Enchantment#isDiscoverable() in net/minecraft/world/level/storage/loot/functions/EnchantRandomlyFunction [30May2024 20:32:44.055] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching EffectRenderingInventoryScreen#renderEffects [30May2024 20:32:44.170] [main/INFO] [MixinExtras|Service/]: Initializing MixinExtras via com.llamalad7.mixinextras.service.MixinExtrasServiceImpl(version=0.3.5). [30May2024 20:32:44.198] [main/INFO] [com.teampotato.redirector.Redirector/]: Redirecting net/minecraft/util/datafix/DataFixerOptimizationOption [30May2024 20:32:44.206] [main/INFO] [com.teampotato.redirector.Redirector/]: Redirecting net/minecraft/util/Unit [30May2024 20:32:44.231] [main/INFO] [com.teampotato.redirector.Redirector/]: Redirecting net/minecraft/ChatFormatting [30May2024 20:32:44.239] [main/WARN] [mixin/]: Static binding violation: PRIVATE @Overwrite method m_216202_ in modernfix-forge.mixins.json:perf.tag_id_caching.TagOrElementLocationMixin cannot reduce visibiliy of PUBLIC target method, visibility will be upgraded. [30May2024 20:32:44.277] [main/INFO] [com.teampotato.redirector.Redirector/]: Redirecting net/minecraft/client/User$Type [30May2024 20:32:45.032] [main/INFO] [mixin/]: BeforeConstant is searching for constants in method with descriptor (Lnet/minecraft/network/chat/Component;Z)V [30May2024 20:32:45.032] [main/INFO] [mixin/]:   BeforeConstant found INTEGER constant: value = 0, intValue = null [30May2024 20:32:45.032] [main/INFO] [mixin/]:     BeforeConstant found a matching constant TYPE at ordinal 0 [30May2024 20:32:45.032] [main/INFO] [mixin/]:       BeforeConstant found Insn [ICONST_0] [30May2024 20:32:45.032] [main/INFO] [mixin/]:   BeforeConstant found INTEGER constant: value = 60, intValue = null [30May2024 20:32:45.033] [main/INFO] [mixin/]:     BeforeConstant found a matching constant TYPE at ordinal 1 [30May2024 20:32:45.033] [main/INFO] [mixin/]:       BeforeConstant found IntInsn 60 [30May2024 20:32:45.184] [main/INFO] [net.minecraftforge.coremod.CoreMod.apotheosis/COREMODLOG]: Patching EffectRenderingInventoryScreen#renderEffects [30May2024 20:32:45.205] [main/INFO] [com.teampotato.redirector.Redirector/]: Redirecting net/minecraft/Util$OS [30May2024 20:32:45.218] [pool-4-thread-1/INFO] [net.minecraft.server.Bootstrap/]: ModernFix reached bootstrap stage (8.092 s after launch) [30May2024 20:32:45.232] [pool-4-thread-1/INFO] [com.teampotato.redirector.Redirector/]: Redirecting net/minecraft/Util$IdentityStrategy [30May2024 20:32:45.236] [pool-4-thread-1/INFO] [com.teampotato.redirector.Redirector/]: Redirecting net/minecraft/core/Holder$Reference$Type [30May2024 20:32:45.247] [pool-4-thread-1/WARN] [mixin/]: @Final field delegatesByName:Ljava/util/Map; in modernfix-forge.mixins.json:perf.forge_registry_alloc.ForgeRegistryMixin should be final [30May2024 20:32:45.247] [pool-4-thread-1/WARN] [mixin/]: @Final field delegatesByValue:Ljava/util/Map; in modernfix-forge.mixins.json:perf.forge_registry_alloc.ForgeRegistryMixin should be final [30May2024 20:32:45.284] [pool-4-thread-1/INFO] [ModernFix/]: Injecting BlockStateBase cache population hook into getOpacityIfCached from ca.spottedleaf.starlight.mixin.common.blockstate.BlockStateBaseMixin [30May2024 20:32:45.284] [pool-4-thread-1/INFO] [ModernFix/]: Injecting BlockStateBase cache population hook into getNeighborPathNodeType from me.jellysquid.mods.lithium.mixin.ai.pathing.AbstractBlockStateMixin [30May2024 20:32:45.284] [pool-4-thread-1/INFO] [ModernFix/]: Injecting BlockStateBase cache population hook into getPathNodeType from me.jellysquid.mods.lithium.mixin.ai.pathing.AbstractBlockStateMixin [30May2024 20:32:45.284] [pool-4-thread-1/INFO] [ModernFix/]: Injecting BlockStateBase cache population hook into m_60823_ from me.jellysquid.mods.lithium.mixin.block.flatten_states.AbstractBlockStateMixin [30May2024 20:32:45.284] [pool-4-thread-1/INFO] [ModernFix/]: Injecting BlockStateBase cache population hook into isConditionallyFullOpaque from ca.spottedleaf.starlight.mixin.common.blockstate.BlockStateBaseMixin [30May2024 20:32:45.284] [pool-4-thread-1/INFO] [ModernFix/]: Injecting BlockStateBase cache population hook into getAllFlags from me.jellysquid.mods.lithium.mixin.chunk.block_counting.AbstractBlockStateMixin [30May2024 20:32:45.725] [pool-4-thread-1/INFO] [com.teampotato.redirector.Redirector/]: Redirecting net/minecraft/core/Direction [30May2024 20:32:45.726] [pool-4-thread-1/INFO] [com.teampotato.redirector.Redirector/]: Redirecting net/minecraft/core/Direction$AxisDirection [30May2024 20:32:45.726] [pool-4-thread-1/INFO] [com.teampotato.redirector.Redirector/]: Redirecting net/minecraft/core/Direction$Axis [30May2024 20:32:45.741] [pool-4-thread-1/INFO] [com.teampotato.redirector.Redirector/]: Redirecting net/minecraft/world/level/material/PushReaction [30May2024 20:32:45.766] [pool-4-thread-1/INFO] [com.cupboard.Cupboard/]: Loaded config for: biomemusic.json [30May2024 20:32:45.768] [pool-4-thread-1/INFO] [com.teampotato.redirector.Redirector/]: Redirecting net/minecraft/world/level/block/state/BlockBehaviour$OffsetType [30May2024 20:32:45.791] [pool-4-thread-1/INFO] [com.teampotato.redirector.Redirector/]: Redirecting net/minecraft/world/level/pathfinder/BlockPathTypes    
    • Hi, any update on this? I'm having a similar issue.
    • Use java 17 instead of Java 22
  • Topics

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.