Update a whole lot of deprecated annotations
This commit is contained in:
@ -39,6 +39,14 @@
|
||||
}
|
||||
|
||||
public Optional<RecipeHolder<?>> byKey(ResourceKey<Recipe<?>> key) {
|
||||
@@ -184,6 +_,7 @@
|
||||
|
||||
@Nullable
|
||||
public RecipeManager.ServerDisplayInfo getRecipeFromDisplay(RecipeDisplayId display) {
|
||||
+ if (display.index() < 0 || display.index() >= this.allDisplays.size()) return null; // Paper
|
||||
return this.allDisplays.get(display.index());
|
||||
}
|
||||
|
||||
@@ -199,6 +_,22 @@
|
||||
Recipe<?> recipe1 = Recipe.CODEC.parse(registries.createSerializationContext(JsonOps.INSTANCE), json).getOrThrow(JsonParseException::new);
|
||||
return new RecipeHolder<>(recipe, recipe1);
|
||||
|
||||
@ -1889,11 +1889,6 @@ public final class CraftServer implements Server {
|
||||
this.saveConfig();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldSendChatPreviews() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isEnforcingSecureProfiles() {
|
||||
return this.getServer().enforceSecureProfile();
|
||||
|
||||
Reference in New Issue
Block a user