Re-added the old sendForm methods

This commit is contained in:
Tim203 2022-06-06 00:25:45 +02:00
parent bd1cc26bf3
commit 94445a5222
No known key found for this signature in database
GPG Key ID: 064EE9F5BF7C3EE8
1 changed files with 16 additions and 0 deletions

View File

@ -1381,6 +1381,22 @@ public class GeyserSession implements GeyserConnection, CommandSender {
formCache.showForm(formBuilder.build());
}
/**
* @deprecated since Cumulus version 1.1, and will be removed when Cumulus 2.0 releases. Please use the new forms instead.
*/
@Deprecated
public void sendForm(org.geysermc.cumulus.Form<?> form) {
sendForm(form.newForm());
}
/**
* @deprecated since Cumulus version 1.1, and will be removed when Cumulus 2.0 releases. Please use the new forms instead.
*/
@Deprecated
public void sendForm(org.geysermc.cumulus.util.FormBuilder<?, ?, ?, ?> formBuilder) {
sendForm(formBuilder.build());
}
private void startGame() {
StartGamePacket startGamePacket = new StartGamePacket();
startGamePacket.setUniqueEntityId(playerEntity.getGeyserId());