SPIGOT-7083: Add Boat.WoodenType, Boat.Status; deprecate TreeSpecies

By: Doc <nachito94@msn.com>
This commit is contained in:
CraftBukkit/Spigot
2022-07-05 20:40:35 +10:00
parent 60fb93349f
commit 2f0d31aa17
3 changed files with 95 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
package org.bukkit.entity;
import net.minecraft.world.entity.vehicle.EntityBoat;
import org.bukkit.craftbukkit.entity.CraftBoat;
import org.junit.Test;
public class BoatTest {
@Test
public void testTypes() {
for (EntityBoat.EnumBoatType enumBoatType : EntityBoat.EnumBoatType.values()) {
CraftBoat.boatTypeFromNms(enumBoatType);
}
for (Boat.Type enumBoatType : Boat.Type.values()) {
CraftBoat.boatTypeToNms(enumBoatType);
}
}
@Test
public void testStatus() {
for (EntityBoat.EnumStatus enumStatus : EntityBoat.EnumStatus.values()) {
CraftBoat.boatStatusFromNms(enumStatus);
}
}
}