-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update villager constructors to support rebalanced types * Update library/entity/entity_extensions/src/main/java/org/quiltmc/qsl/entity/extensions/impl/TradeOfferInternals.java * Switch licenser plugin. (#354) * 1.20.2 Version 2 * Fix some licenses and formatting * Fix networking issues with Fabric Server/Client * Update library/core/networking/src/main/java/org/quiltmc/qsl/networking/impl/common/CommonPacketsImpl.java Co-authored-by: ix0rai <ix0rai64@gmail.com> --------- Co-authored-by: glitch <glitch.g3431@gmail.com> Co-authored-by: LambdAurora <email@lambdaurora.dev> Co-authored-by: ix0rai <ix0rai64@gmail.com>
- Loading branch information
1 parent
aeba8b7
commit 681c7e8
Showing
89 changed files
with
1,317 additions
and
520 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...tworking/src/main/java/org/quiltmc/qsl/networking/api/ServerConfigurationTaskManager.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* | ||
* Copyright 2024 The Quilt Project | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.quiltmc.qsl.networking.api; | ||
|
||
import org.jetbrains.annotations.Nullable; | ||
|
||
import net.minecraft.network.ServerConfigurationPacketHandler; | ||
import net.minecraft.network.configuration.ConfigurationTask; | ||
|
||
import org.quiltmc.qsl.base.api.util.InjectedInterface; | ||
|
||
/** | ||
* An injected interface for {@link net.minecraft.network.ServerConfigurationPacketHandler} that exposes the task system. | ||
*/ | ||
@InjectedInterface(ServerConfigurationPacketHandler.class) | ||
public interface ServerConfigurationTaskManager { | ||
/** | ||
* Adds a task to the handler that must complete before joining. | ||
* | ||
* @param task the task to add | ||
*/ | ||
void addTask(ConfigurationTask task); | ||
|
||
/** | ||
* Finishes the task of the specified type. Will throw an error if a different or no task is running. | ||
* | ||
* @param type the type to finish | ||
*/ | ||
void finishTask(ConfigurationTask.Type type); | ||
|
||
/** | ||
* Gets the currently running task for the configuration handler. | ||
* | ||
* @return the current task | ||
*/ | ||
@Nullable ConfigurationTask getCurrentTask(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.