Skip to content

Commit 8e3ee63

Browse files
committed
Remove deprecated BoatType and CommandCompletionProviders.ALL_RECIPES
1 parent 038c60d commit 8e3ee63

File tree

6 files changed

+0
-147
lines changed

6 files changed

+0
-147
lines changed

src/main/java/org/spongepowered/api/command/registrar/tree/CommandCompletionProviders.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
import org.spongepowered.api.Sponge;
2929
import org.spongepowered.api.effect.sound.SoundType;
3030
import org.spongepowered.api.entity.Entity;
31-
import org.spongepowered.api.item.recipe.Recipe;
3231
import org.spongepowered.api.registry.DefaultedRegistryReference;
3332
import org.spongepowered.api.registry.Registry;
3433
import org.spongepowered.api.registry.RegistryKey;
@@ -44,18 +43,6 @@ public final class CommandCompletionProviders {
4443

4544
// SORTFIELDS:ON
4645

47-
/**
48-
* Instructs the node represented by a {@link CommandTreeNode} to display
49-
* all known {@link Recipe recipes}.
50-
*
51-
* <p>This provider is intended for use with a {@link ResourceKey} parser.
52-
* </p>
53-
*
54-
* @deprecated Feature removed in Minecraft version 1.21.2.
55-
*/
56-
@Deprecated(forRemoval = true)
57-
public static final DefaultedRegistryReference<CommandCompletionProvider> ALL_RECIPES = CommandCompletionProviders.key(ResourceKey.minecraft("all_recipes"));
58-
5946
/**
6047
* Instructs the node represented by a {@link CommandTreeNode} to display
6148
* all known {@link SoundType sounds}.

src/main/java/org/spongepowered/api/data/Keys.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@
5555
import org.spongepowered.api.data.type.ArtType;
5656
import org.spongepowered.api.data.type.AttachmentSurface;
5757
import org.spongepowered.api.data.type.AxolotlVariant;
58-
import org.spongepowered.api.data.type.BoatType;
5958
import org.spongepowered.api.data.type.BodyPart;
6059
import org.spongepowered.api.data.type.BodyParts;
6160
import org.spongepowered.api.data.type.CatType;
@@ -579,14 +578,6 @@ public final class Keys {
579578
*/
580579
public static final Key<Value<Double>> BLOCK_TEMPERATURE = Keys.key(ResourceKey.sponge("block_temperature"), Double.class);
581580

582-
/**
583-
* The type of the boat.
584-
*
585-
* @deprecated Feature removed in Minecraft version 1.21.2.
586-
*/
587-
@Deprecated(forRemoval = true)
588-
public static final Key<Value<BoatType>> BOAT_TYPE = Keys.key(ResourceKey.sponge("boat_type"), BoatType.class);
589-
590581
/**
591582
* The rotation of specific body parts of a {@link ArmorStand} or {@link Living}.
592583
*

src/main/java/org/spongepowered/api/data/type/BoatType.java

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/main/java/org/spongepowered/api/data/type/BoatTypes.java

Lines changed: 0 additions & 72 deletions
This file was deleted.

src/main/java/org/spongepowered/api/entity/vehicle/Boat.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
package org.spongepowered.api.entity.vehicle;
2626

2727
import org.spongepowered.api.data.Keys;
28-
import org.spongepowered.api.data.type.BoatType;
2928
import org.spongepowered.api.data.value.Value;
3029
import org.spongepowered.api.entity.Leashable;
3130

@@ -34,18 +33,6 @@
3433
*/
3534
public interface Boat extends Vehicle, Leashable {
3635

37-
/**
38-
* {@link Keys#BOAT_TYPE}
39-
*
40-
* @return The type of the boat
41-
*
42-
* @deprecated Feature removed in Minecraft version 1.21.2.
43-
*/
44-
@Deprecated(forRemoval = true)
45-
default Value.Mutable<BoatType> boatType() {
46-
return this.requireValue(Keys.BOAT_TYPE).asMutable();
47-
}
48-
4936
/**
5037
* {@link Keys#IS_IN_WATER}
5138
*

src/main/java/org/spongepowered/api/registry/RegistryTypes.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
import org.spongepowered.api.data.type.BambooLeavesType;
5151
import org.spongepowered.api.data.type.BannerPatternShape;
5252
import org.spongepowered.api.data.type.BellAttachmentType;
53-
import org.spongepowered.api.data.type.BoatType;
5453
import org.spongepowered.api.data.type.BodyPart;
5554
import org.spongepowered.api.data.type.CatType;
5655
import org.spongepowered.api.data.type.ChestAttachmentType;
@@ -323,8 +322,6 @@ public final class RegistryTypes {
323322

324323
public static final DefaultedRegistryType<BillboardType> BILLBOARD_TYPE = RegistryTypes.spongeKeyInGame("billboard_type");
325324

326-
public static final DefaultedRegistryType<BoatType> BOAT_TYPE = RegistryTypes.spongeKeyInGame("boat_type");
327-
328325
public static final DefaultedRegistryType<BodyPart> BODY_PART = RegistryTypes.spongeKeyInGame("body_part");
329326

330327
public static final DefaultedRegistryType<CatType> CAT_TYPE = RegistryTypes.minecraftKeyInGame("cat_variant");

0 commit comments

Comments
 (0)