SPIGOT-7083: Add Boat.WoodenType, Boat.Status; deprecate TreeSpecies
By: Doc <nachito94@msn.com>
This commit is contained in:
26
paper-server/src/test/java/org/bukkit/entity/BoatTest.java
Normal file
26
paper-server/src/test/java/org/bukkit/entity/BoatTest.java
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user