
NEG2013
Members-
Posts
123 -
Joined
-
Last visited
Everything posted by NEG2013
-
it still doesn't work though could it be the version of thermal/cofh I'm using or the api
-
It still threw the error in the constructor
-
the constructor didn't like that super and this.recieveenergy had an error so I changed them to this public TESolar() { this.storage.setCapacity(16); this.storage.setMaxReceive(2); this.storage.setMaxExtract(4); } @Override public boolean canConnectEnergy(ForgeDirection from) { return from != ForgeDirection.UP; } @Override public int extractEnergy(ForgeDirection from, int maxExtract, boolean simulate) { return 0; } @Override public void updateEntity() { if(this.worldObj.isDaytime()) if(this.worldObj.canBlockSeeTheSky(this.xCoord, this.yCoord + 1, this.zCoord)){ this.storage.receiveEnergy(2, false); } }
-
yes I realize that but even with it minimized to this it still fails protected EnergyStorage storage = new EnergyStorage(16, 2, 4); @Override public boolean canConnectEnergy(ForgeDirection from) { if(from == ForgeDirection.UP){ return false; } else{ return true; } } @Override public void updateEntity() { if(this.worldObj.isDaytime()){ if(this.worldObj.canBlockSeeTheSky(this.xCoord, this.yCoord, this.zCoord)){ this.storage.receiveEnergy(2, false); } }
-
I have done those corrections and nothing heppend
-
Ive redone it like 20 time snow so heres the class as is currently package neg2013.acsension.tile_entity; import cofh.api.energy.EnergyStorage; import cofh.api.energy.IEnergyHandler; import cofh.api.energy.IEnergyProvider; import cofh.api.energy.TileEnergyHandler; import neg2013.acsension.Acsension; import neg2013.acsension.infrastructure.BlockSolarGenny; import net.minecraft.client.Minecraft; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.event.entity.player.PlayerUseItemEvent.Tick; public class TESolar extends TileEntity implements IInventory, IEnergyHandler{ ItemStack[] items; //power protected EnergyStorage storage = new EnergyStorage(16); @Override public boolean canConnectEnergy(ForgeDirection from) { if(from == ForgeDirection.DOWN){ return true; }if(from == ForgeDirection.EAST){ return true; }if(from == ForgeDirection.NORTH){ return true; }if(from == ForgeDirection.SOUTH){ return true; }if(from == ForgeDirection.UP){ return false; }if(from == ForgeDirection.WEST){ return true; } else{ return true; } } @Override public int extractEnergy(ForgeDirection from, int maxExtract, boolean simulate) { return storage.extractEnergy(maxExtract, simulate); /* if(from == ForgeDirection.DOWN){ return 2; }if(from == ForgeDirection.EAST){ return 2; }if(from == ForgeDirection.NORTH){ return 2; }if(from == ForgeDirection.SOUTH){ return 2; }if(from == ForgeDirection.UP){ return 2; }if(from == ForgeDirection.WEST){ return 2; } else{ return 2; }*/ } @Override public int getMaxEnergyStored(ForgeDirection from) { return storage.getMaxEnergyStored(); } int energy; @Override public int getEnergyStored(ForgeDirection from) { return storage.getEnergyStored(); } @Override public int receiveEnergy(ForgeDirection from, int maxReceive, boolean simulate) { return storage.receiveEnergy(maxReceive, simulate); } @Override public void updateEntity() { if(this.worldObj.isDaytime()){ if(this.worldObj.canBlockSeeTheSky(this.xCoord, this.yCoord, this.zCoord)){ this.storage.setEnergyStored(2); } } } /*if(from == ForgeDirection.DOWN){ if(this.worldObj.isDaytime()){ if(this.worldObj.canBlockSeeTheSky(this.xCoord, this.yCoord, this.zCoord)){ return 2; } } } if(from == ForgeDirection.EAST){ if(this.worldObj.isDaytime()){ if(this.worldObj.canBlockSeeTheSky(this.xCoord, this.yCoord, this.zCoord)){ return 2; } } } if(from == ForgeDirection.NORTH){ if(this.worldObj.isDaytime()){ if(this.worldObj.canBlockSeeTheSky(this.xCoord, this.yCoord, this.zCoord)){ return 2; } } } if(from == ForgeDirection.SOUTH){ if(this.worldObj.isDaytime()){ if(this.worldObj.canBlockSeeTheSky(this.xCoord, this.yCoord, this.zCoord)){ return 2; } } } if(from == ForgeDirection.UP){ if(this.worldObj.isDaytime()){ if(this.worldObj.canBlockSeeTheSky(this.xCoord, this.yCoord, this.zCoord)){ return 2; } } } if(from == ForgeDirection.WEST){ if(this.worldObj.isDaytime()){ if(this.worldObj.canBlockSeeTheSky(this.xCoord, this.yCoord, this.zCoord)){ return 2; } } } else{ return 0; }*/ //solar public TESolar(){ this.items = new ItemStack [128]; this.storage.setCapacity(16); this.storage.setMaxExtract(4); this.storage.setMaxReceive(2); this.storage.setMaxTransfer(2); } //solar //NBT NBT NBT NBT NBT NBT NBT NBT NBT NBT @Override public void writeToNBT(NBTTagCompound nbt) { super.writeToNBT(nbt); storage.writeToNBT(nbt); } @Override public void readFromNBT(NBTTagCompound nbt) { super.readFromNBT(nbt); storage.readFromNBT(nbt); } //NBT NBT NBT NBT NBT NBT NBT NBT NBT NBT @Override public boolean receiveClientEvent(int id, int value) { return super.receiveClientEvent(id, value); } //inventory @Override public int getSizeInventory() { return items.length; } @Override public ItemStack getStackInSlot(int slotIn) { return items[slotIn]; } @Override public ItemStack decrStackSize(int i, int count) { ItemStack itemStack = getStackInSlot(i); if(itemStack != null){ if(itemStack.stackSize >= count){ setInventorySlotContents(i, null); } else{ itemStack = itemStack.splitStack(count); this.markDirty(); } } return itemStack; } @Override public ItemStack getStackInSlotOnClosing(int i) { ItemStack itemStack = getStackInSlot(i); setInventorySlotContents(i, null); return itemStack; } @Override public void setInventorySlotContents(int i, ItemStack itemStack) { items[i] = itemStack; if(itemStack != null && itemStack.stackSize >= getInventoryStackLimit()){ itemStack.stackSize = getInventoryStackLimit(); } this.markDirty(); } @Override public String getInventoryName() { return "Solar Genny"; } @Override public boolean hasCustomInventoryName() { return true; } @Override public int getInventoryStackLimit() { return 64; } @Override public boolean isUseableByPlayer(EntityPlayer player) { return true;//player.getDistanceSq(xCoord + 0.5f, yCoord + 0.5f, zCoord + 0.5f) <= 64; } @Override public void openInventory() { } @Override public void closeInventory() { } @Override public boolean isItemValidForSlot(int i, ItemStack itemStack) { return itemStack.getItem() == items[i].getItem(); } /* if(Minecraft.getMinecraft().theWorld.isDaytime()){ if(Minecraft.getMinecraft().theWorld.canBlockSeeTheSky(this.xCoord, this.yCoord, this.zCoord)){ int tick = Acsension.blockSolarGenny.tickRate(Minecraft.getMinecraft().theWorld); int stored = tick * 2; this.energy = stored; Minecraft.getMinecraft().theWorld.getWorldTime(); if(energy > getMaxEnergyStored(from)){ return getMaxEnergyStored(from); } else{ return energy; } } else{ return energy; } } else{ return energy; }*/ }
-
that did nothing
-
here is my Tile Entity that I tried package neg2013.acsension.tile_entity; import cofh.api.energy.IEnergyHandler; import cofh.api.energy.IEnergyProvider; import neg2013.acsension.Acsension; import neg2013.acsension.infrastructure.BlockSolarGenny; import net.minecraft.client.Minecraft; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.inventory.IInventory; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.tileentity.TileEntity; import net.minecraftforge.common.util.ForgeDirection; import net.minecraftforge.event.entity.player.PlayerUseItemEvent.Tick; public class TESolar extends TileEntity implements IInventory, IEnergyProvider{ ItemStack[] items; //crusher public TESolar(){ this.items = new ItemStack [128]; } //crusher //NBT NBT NBT NBT NBT NBT NBT NBT NBT NBT @Override public void writeToNBT(NBTTagCompound nbt) { super.writeToNBT(nbt); } @Override public void readFromNBT(NBTTagCompound nbt) { super.readFromNBT(nbt); } //NBT NBT NBT NBT NBT NBT NBT NBT NBT NBT @Override public boolean receiveClientEvent(int id, int value) { return super.receiveClientEvent(id, value); } @Override public void updateEntity() { super.updateEntity(); } //inventory @Override public int getSizeInventory() { return items.length; } @Override public ItemStack getStackInSlot(int slotIn) { return items[slotIn]; } @Override public ItemStack decrStackSize(int i, int count) { ItemStack itemStack = getStackInSlot(i); if(itemStack != null){ if(itemStack.stackSize >= count){ setInventorySlotContents(i, null); } else{ itemStack = itemStack.splitStack(count); this.markDirty(); } } return itemStack; } @Override public ItemStack getStackInSlotOnClosing(int i) { ItemStack itemStack = getStackInSlot(i); setInventorySlotContents(i, null); return itemStack; } @Override public void setInventorySlotContents(int i, ItemStack itemStack) { items[i] = itemStack; if(itemStack != null && itemStack.stackSize >= getInventoryStackLimit()){ itemStack.stackSize = getInventoryStackLimit(); } this.markDirty(); } @Override public String getInventoryName() { return "Solar Genny"; } @Override public boolean hasCustomInventoryName() { return true; } @Override public int getInventoryStackLimit() { return 64; } @Override public boolean isUseableByPlayer(EntityPlayer player) { return true;//player.getDistanceSq(xCoord + 0.5f, yCoord + 0.5f, zCoord + 0.5f) <= 64; } @Override public void openInventory() { } @Override public void closeInventory() { } @Override public boolean isItemValidForSlot(int i, ItemStack itemStack) { return itemStack.getItem() == items[i].getItem(); } //power @Override public boolean canConnectEnergy(ForgeDirection from) { return true; } @Override public int extractEnergy(ForgeDirection from, int maxExtract, boolean simulate) { return 16; } @Override public int getMaxEnergyStored(ForgeDirection from) { return 16; } int energy; @Override public int getEnergyStored(ForgeDirection from) { if(Minecraft.getMinecraft().theWorld.isDaytime()){ if(Minecraft.getMinecraft().theWorld.canBlockSeeTheSky(this.xCoord, this.yCoord, this.zCoord)){ return 16; } } return 0; } }
-
How do I create a simple RF producing block
-
the problem is more that I cant find the development version
-
I'm trying to make a mod depend on thermal dynamics but I cant get the development version of CoFH Core for 1.7.10 so it just crashes ---- Minecraft Crash Report ---- // Everything's going to plan. No, really, that was supposed to happen. Time: 5/1/16 11:06 AM Description: Unexpected error java.lang.NoSuchMethodError: net.minecraft.client.renderer.texture.ITickable.func_110550_d()V at cofh.asmhooks.HooksCore.tickTextures(HooksCore.java:109) at net.minecraft.client.Minecraft.runTick(Minecraft.java:1700) at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1039) at net.minecraft.client.Minecraft.run(Minecraft.java:962) at net.minecraft.client.main.Main.main(Main.java:164) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) at GradleStart.main(Unknown Source) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_74, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 594277216 bytes (566 MB) / 1038876672 bytes (990 MB) up to 1038876672 bytes (990 MB) JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 8 mods loaded, 8 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored U mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) U FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) U Forge{10.13.4.1558} [Minecraft Forge] (forgeSrc-1.7.10-10.13.4.1558-1.7.10.jar) U <CoFH ASM>{000} [CoFH ASM Data Initialization] (minecraft.jar) U ac{1.5.7} [Acsension] (bin) U CoFHCore{1.7.10R3.0.1} [CoFH Core] (CoFHCore-[1.7.10]3.0.1-254.jar) U ThermalDynamics{1.7.10R1.1.0} [Thermal Dynamics] (ThermalDynamics-[1.7.10]1.1.0-161.jar) U ThermalFoundation{1.7.10R1.2.0} [Thermal Foundation] (ThermalFoundation-[1.7.10]1.2.0-102.jar) GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.5.13416 Compatibility Profile Context 15.201.1301.1007' Renderer: 'AMD Radeon R7' Launched Version: 1.7.10 LWJGL: 2.9.1 OpenGL: AMD Radeon R7 GL version 4.5.13416 Compatibility Profile Context 15.201.1301.1007, ATI Technologies Inc. GL Caps: Using GL 1.3 multitexturing. Using framebuffer objects because OpenGL 3.0 is supported and separate blending is supported. Anisotropic filtering is supported and maximum anisotropy is 16. Shaders are available because OpenGL 2.1 is supported. Is Modded: Definitely; Client brand changed to 'fml,forge' Type: Client (map_client.txt) Resource Packs: [] Current Language: English (US) Profiler Position: N/A (disabled) Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Anisotropic Filtering: Off (1)
-
[1.8.9]Detecting a GUI close of the ingame Gui
NEG2013 replied to theOriginalByte's topic in Modder Support
is that intelij -
have to do something in build.gradle
-
deobfuscated version of MINECRAFT or the mod
-
How do I get cofhcore and thermal into my forge environment if I put them in mods folder it crashes
-
[1.8.9] Multiblocks structures and OBJ models: is it possible?
NEG2013 replied to ZeroNoRyouki's topic in Modder Support
Hey so I'm pretty good at coding and I had a mod in 1.7.10 but updating messed it all up and I don't want to restart so would you be willing to partner with me? -
O sry I don't know how to draw textures on top of each other
-
add this at top @SideOnly(Side.CLIENT) private IIcon field_150035_a; @SideOnly(Side.CLIENT) private IIcon field_150034_b; @SideOnly(Side.CLIENT) private IIcon field_150034_c; and this some where @SideOnly(Side.CLIENT) public IIcon getIcon(int side, int met) { return side == 1 ? this.field_150035_a : (side == 0 ? field_150034_c : (side != 2 && side != 4 ? this.blockIcon : this.field_150034_b)); } @SideOnly(Side.CLIENT) public void registerBlockIcons(IIconRegister p_149651_1_) { this.blockIcon = p_149651_1_.registerIcon("side"); this.field_150035_a = p_149651_1_.registerIcon("top"); this.field_150034_b = p_149651_1_.registerIcon("side"); this.field_150034_c = p_149651_1_.registerIcon("bottom"); } then replace "side" with you side texture "top" with your top texture and "bottom" with your bottom texture then it will render properly like a bookshelf
-
[1.7.10] [Unsolved] Can Anyone help with this error?
NEG2013 replied to RizeTv's topic in Modder Support
why do you have an obj file if your in 1.7.10??? -
That's what I'm doing because everything got messed up after 1.7.10
-
thanks a lot
-
GuiHandler http://pastebin.com/5ir7T4Cx BlockDecomposer http://pastebin.com/F8hUub0R TEDecomp http://pastebin.com/TkhZyDqT DecompContainer http://pastebin.com/mjJU03aF GuiDecomposer http://pastebin.com/n0V4H8Kc I think that's all of them
-
I actually realized that and moved them this morning but it still has bugs like you cant pick up a stack if you pick it up using mouse wheel on creative you start being able to move the stacks around like a normal gui but after a few seconds the stacks start glitching around then it stops working again and then if you try to move them again using middle wheel it crashes so ya its messed up
-
that bit of code does not draw them on top it draws them above so it makes the inventory I think and how are there 80+ slots?