mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-10-23 16:44:06 +00:00
adding mroe of this
This commit is contained in:
1 parent
03746468ec
commit
4adef4576f
17 files changed
+576
-35
No files matched your search
@@ -7,6 +7,8 @@ import org.junit.BeforeClass;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertFalse;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
|
||||
public final class StubPlatformStateTest {
|
||||
@BeforeClass
|
||||
@@ -41,6 +43,22 @@ public final class StubPlatformStateTest {
|
||||
assertEquals("minecraft:oak_leaves[distance=7,persistent=true]", merged.key());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void classifiesVanillaFluidStates() {
|
||||
PlatformBlockState water = state("minecraft:water[level=0]");
|
||||
PlatformBlockState lava = state("minecraft:lava[level=0]");
|
||||
PlatformBlockState stone = state("minecraft:stone");
|
||||
|
||||
assertTrue(water.isFluid());
|
||||
assertTrue(water.isWater());
|
||||
assertFalse(water.isSolid());
|
||||
assertTrue(lava.isFluid());
|
||||
assertFalse(lava.isWater());
|
||||
assertFalse(lava.isSolid());
|
||||
assertFalse(stone.isFluid());
|
||||
assertTrue(stone.isSolid());
|
||||
}
|
||||
|
||||
private PlatformBlockState state(String key) {
|
||||
return IrisPlatforms.get().registries().block(key);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user