public class TreeLeaves extends LeavesBlock{
public TreeLeaves(Properties properties) {
super(properties);
}
public boolean canEntitySpawn(BlockState state, IBlockReader worldIn, BlockPos pos, EntityType<?> type) {
return type == EntityType.OCELOT || type == EntityType.PARROT;
}
@Override
public void beginLeaveDecay(BlockState state, IWorldReader world, BlockPos pos) {
super.beginLeaveDecay(state, world, pos);
}
}