-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
Both methods neighborChanged and getStateForPlacement have a world and a BlockPos parameter.
-
How does having two mods installed with a same item name work?
Animefan8888 replied to Durtle02's topic in Modder Support
They use the OreDictionary and I do the same thing but with the eclipse keybinding. -
First off this is not going to work in your block class TileEntitySolarGenerator tileEntitySolarGenerator = new TileEntitySolarGenerator(); instead use world.getTileEntity(pos) Next pass in a World and BlockPos variable into updateFromPlaced() and updateFromNeighbor()
-
Use neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn) and getStateForPlacement(World world, BlockPos pos, EnumFacing facing, float hitX, float hitY, float hitZ, int meta, EntityLivingBase placer, ItemStack stack)
-
for each enum { BlockPos pos = getPos().offset(face); if (getWorld().getTileEntity(pos) instanceof TEClass) { // Do stuff } else { // Do stuff } }
-
When do you update energyDP?
-
You override getWorld() remove that function from your class and add the functionality to update.
-
Don't override getWorld()...
-
Don't override getWorld(), for this you want to use update.
-
That depends why are you checking for adjacent blocks?
-
Yes
-
worldObj.getBlockState(BlockPos).getBlock()
-
You only need one GuiHandler...
-
Post your ClientProxy, ServerProxy, and your Reference class
-
[Solved] [1.11] GUI Drawing confusion
Animefan8888 replied to abused_master's topic in Modder Support
Your receiveEnergy is where the energy gets changed. I thought it might be and did try but that didnt change anything so i thought it must be another way of doing it There are two other methods I forgot to say getUpdateTag, and handleUpdateTag. Those were recently brought to my attention. -
[Solved] [1.11] GUI Drawing confusion
Animefan8888 replied to abused_master's topic in Modder Support
Your receiveEnergy is where the energy gets changed. -
Is it under the assets/modid/models/item folder? Because it doesn't show that.
-
Show the entire explorer in your IDE.
-
Post new log. And your item json.
-
[Solved] [1.11] GUI Drawing confusion
Animefan8888 replied to abused_master's topic in Modder Support
Data ie the energy. -
All file names should be lowercase. If you are using 1.11 they have to be in 1.10.2 they do not, but since it is being enforced in 1.11 best to start doing it now. The file it is looking for is ingotcopper not ingotCopper.