#"Identifier"

23 messages · Page 1 of 1 (latest)

raw roost
#

Identifier.of(String, String)

robust mist
#

like this or am i doint this wrong because i still get an error. Identifier id = new Identifier.of(MODID, "lightning_core");

#

Cannot resolve symbol 'of'

#

its for 1.21.1 btw

raw roost
#

Alright, then is import for right class?

#

For minecraft, not any else Java Lib

robust mist
#

wdym?

raw roost
#

Oh ye it mented in error, sorry

#

missed that

robust mist
#

its alg

raw roost
#

let me check my 1.21.1 code

robust mist
#

ok

raw roost
#

So

#

In my 1.21.1 is Identifier.of(String, String)

robust mist
#

dang

#

idk why its saying this

#

do you have something like this at the top to make it work

#

import net.minecraft.

raw roost
#

Remove new (dont remember do you need it or not. I use kotlin so it work itself)

robust mist
#

OK

#

that fixed it

#

thanks

#

do i gotta close this post