Hey guys, im kinda new here, hoping im posting it on the right section:
I got this mod with tons of animal mobs from MC 1.12 and im trying to update it to 1.15, but im having a lot of problems with code change,
Im trying to make my mob here climb walls like a Spider, so what i did was copy the Spider climb files, but for some reason it gives error on this line:
private static final DataParameter<Byte> CLIMBING = EntityDataManager.createKey(CapuchinBrownEntity.class, DataSerializers.BYTE);
the CapuchinBrownEntity part will give the error below, and if i replace it with SpiderEntity the mode wont appear in-game (off course):
error: method createKey in class EntityDataManager cannot be applied to given types;
private static final DataParameter<Byte> CLIMBING = EntityDataManager.createKey(CapuchinBrownEntity.class, DataSerializers.BYTE);
^
required: Class<? extends Entity>,IDataSerializer<T>
found: Class<CapuchinBrownEntity>,IDataSerializer<Byte>
reason: cannot infer type-variable(s) T
(argument mismatch; Class<CapuchinBrownEntity> cannot be converted to Class<? extends Entity>)
where T is a type-variable:
T extends Object declared in method <T>createKey(Class<? extends Entity>,IDataSerializer<T>)
1 error
> Task :compileJava FAILED
FAILURE: Build failed with an exception.
im trying to make my little monkey mobs climb blocks