es.davy.ai

Preguntas y respuestas de programación confiables

¿Tienes una pregunta?

Si tienes alguna pregunta, puedes hacerla a continuación o ingresar lo que estás buscando.

Tag: MINECRAFT-FORGE

Java “error: tipos incompatibles: la variable de inferencia E tiene límites incompatibles” error

Así que estoy probando algo en Java (un mod de Minecraft forge). Y cuando compilo, sigo recibiendo este error: error: tipos incompatibles: la variable de inferencia E tiene límites incompatibles return Lists.newArrayList((Object[])new String[] { “clickset” }); ^ restricciones de igualdad: String límites inferiores: Object donde E es una variable de . . . Read more

Cómo reemplazar un elemento en el inventario (1.16.5)

Quiero que el elemento sea reemplazado por otro elemento cuando la función anulada se ejecute. @Override public ActionResultType itemInteractionForEntity(ItemStack stack, PlayerEntity playerIn, LivingEntity target, Hand hand) { if (!playerIn.world.isRemote()) { // Reemplazar un elemento con xyz } return super.itemInteractionForEntity(stack, playerIn, target, hand); } “` ¿Cómo puedo lograr esto? Nota: Estoy . . . Read more