Jump to content

The Gradle claims that it cannot find a symbol.


TheGamerCailo

Recommended Posts

Now, I have inspected someone else's code for this process, changing things as I see fit so that I'm not just literally copying it over into my workspace. However, this has led to a series of problems. Some of which I have been able to fix, but a lot, I'm not experienced enough to fix. So I'm just going to share one of the errors that I got, and since a lot of the errors are similar to this one, I'm going to hope that the answers I get will give me enough knowledge to fix the others. Basically, the error says that it can't detect a symbol that I believe is there.

C:\Users\******.********\anime_showdown_mod\src\main\java\net\animeshowdownmod\block\BlockGravityControl.java:32: error: cannot find symbol 
import net.minecraft.state.IProperty; 
                          ^ 
  symbol:   class IProperty 
  location: package net.minecraft.state

If you'll notice, it says that it cannot find the symbol of the period in between "state", and "Iproperty". And then there's something with the symbol below, saying "class Iproperty". Not sure what it's telling me. It seems like it should be obvious. I feel like it will be very obvious, something in front of my face, but whenever I try anything, it fails, so I'm coming to the forums. Of course, you'll probably want to see the actual code. Its pretty immense, so I'll just share the actual imports since that seems to be where the error is coming from, and if you need to see anything else, I can show you later. 

package net.animeshowdownmod.block;

import net.minecraft.state.properties.BlockStateProperties;
import java.util.TimerTask;
import java.util.Timer;
import net.minecraft.world.IWorldReader;
import net.minecraft.world.IWorld;
import net.minecraft.util.Direction;
import net.animeshowdownmod.common.GamePlayer;
import java.util.Iterator;
import net.minecraft.potion.EffectInstance;
import net.minecraft.potion.Effects;
import net.animeshowdownmod.common.PlayerManager;
import net.minecraft.entity.player.ServerPlayerEntity;
import java.util.Random;
import net.minecraft.world.server.ServerWorld;
import net.minecraft.util.SoundCategory;
import net.minecraft.util.SoundEvents;
import net.minecraft.util.ActionResultType;
import net.minecraft.util.math.BlockRayTraceResult;
import net.minecraft.util.Hand;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
import net.minecraft.util.text.StringTextComponent;
import net.minecraft.util.text.ITextComponent;
import net.minecraft.state.StateContainer;
import net.minecraft.state.IProperty;
import net.minecraft.block.BlockState;
import net.minecraft.block.SoundType;
import net.minecraft.block.material.Material;
import net.minecraft.block.material.MaterialColor;
import net.minecraft.state.BooleanProperty;
import net.minecraft.block.Block;

There's the code, and the actual error is 7 lines up from the bottom, where it says "import net. state.IProperty". I really don't understand, and this is hindering me from being able to develop my mod any further, so if anyone could help, that would be great!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

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