diff options
author | Phoenix616 <mail@moep.tv> | 2017-03-23 23:18:32 +0100 |
---|---|---|
committer | md_5 <git@md-5.net> | 2017-03-24 15:11:13 +1100 |
commit | 7ea2fbb6ebec25f055197697288b8a4ee92368a1 (patch) | |
tree | 9cfa0ae46ed5a1cbcf297a9636a3f92e27918a78 /src/test/java/org/bukkit | |
parent | 31a852d61970cdb309d01d31e0ec2ca6b3771b2d (diff) | |
download | craftbukkit-7ea2fbb6ebec25f055197697288b8a4ee92368a1.tar craftbukkit-7ea2fbb6ebec25f055197697288b8a4ee92368a1.tar.gz craftbukkit-7ea2fbb6ebec25f055197697288b8a4ee92368a1.tar.lz craftbukkit-7ea2fbb6ebec25f055197697288b8a4ee92368a1.tar.xz craftbukkit-7ea2fbb6ebec25f055197697288b8a4ee92368a1.zip |
Add Material.isFuel to check if a material is a furnace fuel.
Diffstat (limited to 'src/test/java/org/bukkit')
-rw-r--r-- | src/test/java/org/bukkit/PerMaterialTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/java/org/bukkit/PerMaterialTest.java b/src/test/java/org/bukkit/PerMaterialTest.java index 60665f53..eabe68d7 100644 --- a/src/test/java/org/bukkit/PerMaterialTest.java +++ b/src/test/java/org/bukkit/PerMaterialTest.java @@ -10,6 +10,7 @@ import net.minecraft.server.BlockFire; import net.minecraft.server.Item; import net.minecraft.server.ItemFood; import net.minecraft.server.ItemRecord; +import net.minecraft.server.TileEntityFurnace; import org.bukkit.craftbukkit.inventory.CraftItemStack; import org.bukkit.inventory.ItemStack; @@ -131,6 +132,11 @@ public class PerMaterialTest extends AbstractTestingBase { } @Test + public void isFuel() { + assertThat(material.isFuel(), is(TileEntityFurnace.isFuel(new net.minecraft.server.ItemStack(CraftMagicNumbers.getItem(material))))); + } + + @Test public void isOccluding() { if (material.isBlock()) { assertThat(material.isOccluding(), is(CraftMagicNumbers.getBlock(material).isOccluding(CraftMagicNumbers.getBlock(material).getBlockData()))); |