Java 类net.minecraft.server.BlockFalling 实例源码

项目:CraftBukkit    文件:PerMaterialTest.java   
@Test
public void hasGravity() {
    if (material.isBlock()) {
        assertThat(material.hasGravity(), is(CraftMagicNumbers.getBlock(material) instanceof BlockFalling));
    } else {
        assertFalse(material.hasGravity());
    }
}
项目:Craftbukkit    文件:PerMaterialTest.java   
@Test
public void hasGravity() {
    if (material.isBlock()) {
        assertThat(material.hasGravity(), is(CraftMagicNumbers.getBlock(material) instanceof BlockFalling));
    } else {
        assertFalse(material.hasGravity());
    }
}
项目:Tweakkit-Server    文件:PerMaterialTest.java   
@Test
public void hasGravity() {
    if (material.isBlock()) {
        assertThat(material.hasGravity(), is(CraftMagicNumbers.getBlock(material) instanceof BlockFalling));
    } else {
        assertFalse(material.hasGravity());
    }
}
项目:SpigotSource    文件:PerMaterialTest.java   
@Test
public void hasGravity() {
    if (material.isBlock()) {
        assertThat(material.hasGravity(), is(CraftMagicNumbers.getBlock(material) instanceof BlockFalling));
    } else {
        assertFalse(material.hasGravity());
    }
}