Skip to content

Commit e6532b3

Browse files
committed
Deprecate BoatType
1 parent ad98468 commit e6532b3

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -573,7 +573,10 @@ public final class Keys {
573573

574574
/**
575575
* The type of the boat.
576+
*
577+
* @deprecated Feature removed in Minecraft version 1.21.2.
576578
*/
579+
@Deprecated(forRemoval = true)
577580
public static final Key<Value<BoatType>> BOAT_TYPE = Keys.key(ResourceKey.sponge("boat_type"), BoatType.class);
578581

579582
/**

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@
2727
import org.spongepowered.api.registry.DefaultedRegistryValue;
2828
import org.spongepowered.api.util.annotation.CatalogedBy;
2929

30+
/**
31+
* @deprecated Feature removed in Minecraft version 1.21.2.
32+
*/
33+
@Deprecated(forRemoval = true)
3034
@CatalogedBy(BoatTypes.class)
3135
public interface BoatType extends DefaultedRegistryValue<BoatType> {
3236

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@
3434
import org.spongepowered.api.registry.RegistryTypes;
3535

3636
/**
37-
* <!-- This file is automatically generated. Any manual changes will be overwritten. -->
37+
* @deprecated Feature removed in Minecraft version 1.21.2.
3838
*/
39+
@Deprecated(forRemoval = true)
3940
@SuppressWarnings("unused")
4041
@RegistryScopes(scopes = RegistryScope.GAME)
4142
public final class BoatTypes {

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ public interface Boat extends Vehicle, Leashable {
3838
* {@link Keys#BOAT_TYPE}
3939
*
4040
* @return The type of the boat
41+
*
42+
* @deprecated Feature removed in Minecraft version 1.21.2.
4143
*/
44+
@Deprecated(forRemoval = true)
4245
default Value.Mutable<BoatType> boatType() {
4346
return this.requireValue(Keys.BOAT_TYPE).asMutable();
4447
}

0 commit comments

Comments
 (0)