Flying mobs creating

Published by Omut on Wed, 08/07/2019 - 10:50
Upvotes: 0
Issue description

I can not create any flying mob. When i set behavioral to "flying", editor returns compillation error.  I did not set any AI-options like pre-defined AI's or tasks to the mob.

Error log is the next:

 

G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:24: error: a type with the same simple name is already defined by the single-type-import of EntityFlying
import net.minecraft.entity.EntityFlying;
^
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:85: error: no interface expected here
	public static class EntityoverGhast extends EntityFlying {
	                                            ^
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:60: error: no suitable method found for registerEntityRenderingHandler(Class<EntityoverGhast>,RenderLiving)
		RenderingRegistry.registerEntityRenderingHandler(mcreator_overGhast.EntityoverGhast.class, customRender);
		                 ^
    method RenderingRegistry.registerEntityRenderingHandler(Class<? extends Entity>,Render<? extends Entity>) is not applicable
      (argument mismatch; Class<EntityoverGhast> cannot be converted to Class<? extends Entity>)
    method RenderingRegistry.<T>registerEntityRenderingHandler(Class<T>,IRenderFactory<? super T>) is not applicable
      (cannot infer type-variable(s) T
        (argument mismatch; RenderLiving cannot be converted to IRenderFactory<? super T>))
  where T is a type-variable:
    T extends Entity declared in method <T>registerEntityRenderingHandler(Class<T>,IRenderFactory<? super T>)
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:70: error: incompatible types: Class<EntityoverGhast> cannot be converted to Class<? extends Entity>
		EntityRegistry.registerModEntity(new ResourceLocation("testenvironmentmod:overGhast"), mcreator_overGhast.EntityoverGhast.class, "overGhast",
		                                                                                                                         ^
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:72: error: no suitable method found for addSpawn(Class<EntityoverGhast>,int,int,int,EnumCreatureType,Biome[])
		EntityRegistry.addSpawn(mcreator_overGhast.EntityoverGhast.class, 100, 3, 30, EnumCreatureType.MONSTER, clean(Biome.REGISTRY));
		              ^
    method EntityRegistry.addSpawn(Class<? extends EntityLiving>,int,int,int,EnumCreatureType,Biome...) is not applicable
      (argument mismatch; Class<EntityoverGhast> cannot be converted to Class<? extends EntityLiving>)
    method EntityRegistry.addSpawn(String,int,int,int,EnumCreatureType,Biome...) is not applicable
      (argument mismatch; Class<EntityoverGhast> cannot be converted to String)
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:91: error: cannot find symbol
			experienceValue = 5;
			^
  symbol:   variable experienceValue
  location: class EntityoverGhast
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:92: error: cannot find symbol
			this.isImmuneToFire = true;
			    ^
  symbol: variable isImmuneToFire
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:94: error: cannot find symbol
			setNoAI(!false);
			^
  symbol:   method setNoAI(boolean)
  location: class EntityoverGhast
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:96: error: cannot find symbol
			setCustomNameTag("OverGhast");
			^
  symbol:   method setCustomNameTag(String)
  location: class EntityoverGhast
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:97: error: cannot find symbol
			setAlwaysRenderNameTag(true);
			^
  symbol:   method setAlwaysRenderNameTag(boolean)
  location: class EntityoverGhast
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:102: error: non-static variable super cannot be referenced from a static context
			super.applyEntityAttributes();
			^
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:102: error: cannot find symbol
			super.applyEntityAttributes();
			     ^
  symbol: method applyEntityAttributes()
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:103: error: cannot find symbol
			this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.25D);
			    ^
  symbol: method getEntityAttribute(IAttribute)
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:104: error: cannot find symbol
			this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(10D);
			    ^
  symbol: method getEntityAttribute(IAttribute)
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:105: error: cannot find symbol
			if (this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE) != null)
			        ^
  symbol: method getEntityAttribute(IAttribute)
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:106: error: cannot find symbol
				this.getEntityAttribute(SharedMonsterAttributes.ATTACK_DAMAGE).setBaseValue(0D);
				    ^
  symbol: method getEntityAttribute(IAttribute)
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:113: error: method does not override or implement a method from a supertype
		@Override
		^
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:118: error: method does not override or implement a method from a supertype
		@Override
		^
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:123: error: method does not override or implement a method from a supertype
		@Override
		^
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:128: error: method does not override or implement a method from a supertype
		@Override
		^
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:133: error: method does not override or implement a method from a supertype
		@Override
		^
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:135: error: non-static variable super cannot be referenced from a static context
			super.onStruckByLightning(entityLightningBolt);
			^
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:135: error: cannot find symbol
			super.onStruckByLightning(entityLightningBolt);
			     ^
  symbol: method onStruckByLightning(EntityLightningBolt)
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:136: error: cannot find symbol
			int i = (int) this.posX;
			                  ^
  symbol: variable posX
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:137: error: cannot find symbol
			int j = (int) this.posY;
			                  ^
  symbol: variable posY
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:138: error: cannot find symbol
			int k = (int) this.posZ;
			                  ^
  symbol: variable posZ
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:139: error: incompatible types: EntityoverGhast cannot be converted to Entity
			Entity entity = this;
			                ^
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:143: error: method does not override or implement a method from a supertype
		@Override
		^
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:145: error: non-static variable super cannot be referenced from a static context
			super.fall(l, d);
			^
G:\Games\MinecraftTotal\MCreator\forge\build\sources\main\java\mod\mcreator\mcreator_overGhast.java:145: error: cannot find symbol

 

Issue comments



Donate to MCreator

By donating to developers you can speed up development, as with more resources, we can dedicate more time to MCreator. It is a free project made by developers working on it in their free time.