Update forgegradle and minecraftforge

Switch to official mappings
This commit is contained in:
Marcel Konrad
2021-03-25 23:14:35 +01:00
parent 27b614280b
commit 7498440cd8
72 changed files with 530 additions and 553 deletions

View File

@@ -40,7 +40,7 @@ public class UsercontentAPI
{
if(object != null)
{
Minecraft.getInstance().ingameGUI.func_238450_a_(ChatType.CHAT, new StringTextComponent(object.toString()), Util.DUMMY_UUID);
Minecraft.getInstance().gui.handleChat(ChatType.CHAT, new StringTextComponent(object.toString()), Util.NIL_UUID);
}
}

View File

@@ -154,7 +154,7 @@ public class UsercontentLoader
private static boolean isValidPathName(Path path)
{
String name = path.getFileName().toString();
boolean valid = ResourceLocation.isResouceNameValid(name);
boolean valid = ResourceLocation.isValidResourceLocation(name);
if(!valid)
{

View File

@@ -113,9 +113,9 @@ public class WidgetFactory extends AbstractWidgetFactory
widget.getLayout().getHeight(),
TextUtils.formatNonnull(widget.getText())
);
textfield.setValidator(Predicates.notNull());
textfield.setText(this.getApi().getValue(widget.getAttributes().getId()));
textfield.setResponder(this.getActionHandlerFactory().createResponder(string -> textfield.getText(), widget.getAttributes().getId(), widget.getAction()));
textfield.setFilter(Predicates.notNull());
textfield.setValue(this.getApi().getValue(widget.getAttributes().getId()));
textfield.setResponder(this.getActionHandlerFactory().createResponder(string -> textfield.getValue(), widget.getAttributes().getId(), widget.getAction()));
return textfield;
}