Update to 1.14.2

This commit is contained in:
LexManos authored and cpw committed 2019-06-07 16:50:47 -04:00
1 parent d3e8804dbf
commit a7df63e1a1
1010 files changed
+15254 -19520

No files matched your search

@@ -19,28 +19,28 @@
package net.minecraftforge.common;
import net.minecraft.block.BlockCrops;
import net.minecraft.block.BlockFlower;
import net.minecraft.block.BlockSapling;
import net.minecraft.block.state.IBlockState;
import net.minecraft.init.Blocks;
import net.minecraft.block.CropsBlock;
import net.minecraft.block.FlowerBlock;
import net.minecraft.block.SaplingBlock;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.IBlockReader;
public interface IPlantable
{
default EnumPlantType getPlantType(IBlockReader world, BlockPos pos) {
if (this instanceof BlockCrops) return EnumPlantType.Crop;
if (this instanceof BlockSapling) return EnumPlantType.Plains;
if (this instanceof BlockFlower) return EnumPlantType.Plains;
if (this == Blocks.DEAD_BUSH) return EnumPlantType.Desert;
if (this == Blocks.LILY_PAD) return EnumPlantType.Water;
if (this == Blocks.RED_MUSHROOM) return EnumPlantType.Cave;
if (this == Blocks.BROWN_MUSHROOM) return EnumPlantType.Cave;
if (this == Blocks.NETHER_WART) return EnumPlantType.Nether;
if (this == Blocks.TALL_GRASS) return EnumPlantType.Plains;
return net.minecraftforge.common.EnumPlantType.Plains;
default PlantType getPlantType(IBlockReader world, BlockPos pos) {
if (this instanceof CropsBlock) return PlantType.Crop;
if (this instanceof SaplingBlock) return PlantType.Plains;
if (this instanceof FlowerBlock) return PlantType.Plains;
if (this == Blocks.DEAD_BUSH) return PlantType.Desert;
if (this == Blocks.LILY_PAD) return PlantType.Water;
if (this == Blocks.RED_MUSHROOM) return PlantType.Cave;
if (this == Blocks.BROWN_MUSHROOM) return PlantType.Cave;
if (this == Blocks.NETHER_WART) return PlantType.Nether;
if (this == Blocks.TALL_GRASS) return PlantType.Plains;
return net.minecraftforge.common.PlantType.Plains;
}
IBlockState getPlant(IBlockReader world, BlockPos pos);
BlockState getPlant(IBlockReader world, BlockPos pos);
}